adding numbers in Javscript

JavaScript
return a+b; var x = 5;         // assign the value 5 to 
 x

 var y = 2;         // assign the value 
 2 to y

 var z = x + y;     // assign the value 7 to z (x + y)
 
Source

Also in JavaScript: