1/*Like values, variables also have types. We determine the type of a
2variable the same way we determine the type of a value, using typeof.*/
3
4let message = "What's up, Doc?";
5let n = 17;
6let pi = 3.14159;
7
8console.log(typeof message);
9console.log(typeof n);
10console.log(typeof pi);
11
12//string
13//number
14//number
1/*After a variable has been created, it may be used later in a program
2anywhere a value may be used. For example, console.log prints a value,
3we can also give console.log a variable.*/
4
5//These two examples have the exact same output.
6console.log("Hello, World!");
7
8let message = "Hello, World!";
9console.log(message);
10
1/*When we refer to a variable name, we are evaluating the variable.
2The effect is just as if the value of the variable is substituted
3for the variable name in the code when executed.*/
4
5let message = "What's up, Doc?";
6let n = 17;
7let pi = 3.14159;
8
9console.log(message);
10console.log(n);
11console.log(pi);
12
13//What's up, Doc?
14//17
15//3.14159