The following files exists in this folder. Click to view.
variables.md1 lines ASCII Unix (LF) Variables
==============================
```
/**
* Declare a variable that is a number
*/
var x = 42;
console.log(x);
/**
* Use the number variable to count up
*/
console.log(x + 10);
/**
* Decalare a variable that is a string
*/
var greeting = "Hello";
console.log(greeting);
/**
* Add more text to the string
*/
console.log(greeting + " world!");
/**
* Decalare a variable where the number is a string
*/
var str = "42";
console.ong(str);
/**
* See what happens when we add a number to a string that contains a number
*/
console.log(x + 10);
```
Reference and read more
------------------------------
[MDN Declaring variables](https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Values,_variables,_and_literals#Declaring_variables)
Revision history
------------------------------
2014-06-03 (sylvanas) PA1 First try.