Preview:
var myName;
// var keyword create a variable called myName

 //you can store a value in a variable with the assignment operator (=).
var a;
a = 7;
// this code assign the value 7 to variable a.

//you can assign the value of that variable to another variable using the assignment operator.
var myVar;
myVar = 5;
var myNum;
myNum = myVar;
// now the code assign the contents of a to variable b.
                                                                   
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter