Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

4.3.2. Evaluating Variables¶

/*After a variable has been created, it may be used later in a program 
anywhere a value may be used. For example, console.log prints a value, 
we can also give console.log a variable.*/

//These two examples have the exact same output.
console.log("Hello, World!");

let message = "Hello, World!";
console.log(message);
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #Evaluating
ADD COMMENT
Topic
Name
3+4 =