Categories > Original > Essay > Coding

variables

by iluvdacomalfoy 0 reviews

stuff

Category: Essay - Rating: G - Genres: Angst - Published: 2014-11-27 - 68 words

0Unrated


To do more complex coding, we need a way to 'save' the values from our coding. We do this by defining a variable with a specific, case-sensitive name. Once you create (or declare) a variable as having a particular name, you can then call up that value by typing the variable name.

Code:

var varName = data;

Example:

a. var myName = "Leng";
b. var myAge = 30;
c. var isOdd = true;
Sign up to rate and review this story