Answers for "4.5. Expressions and Evaluation¶"

0

4.5. Expressions and Evaluation¶

/*If you ask JavaScript to print an expression using console.log, 
the interpreter evaluates the expression and displays the result.*/

console.log(1 + 1);

//2
Posted by: Guest on June-06-2021
0

4.5. Expressions and Evaluation¶

/*Since evaluating an expression produces a value, expressions can 
appear on the right-hand side of assignment statements.*/

let sum = 1 + 2;
console.log(sum);

//3
Posted by: Guest on June-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language