const total = 6 * 7;
console.log(total);The 6 * 7 expression is evaluated before 42 is assigned to the constant.
LESSON 04 OF 50
Build a numeric result with the multiplication operator.
The * operator converts operands according to numeric rules and produces their product. Storing the expression in a variable makes the result reusable.
const total = 6 * 7;
console.log(total);The 6 * 7 expression is evaluated before 42 is assigned to the constant.
const total = '6 * 7';Inside quotes this is a string, not an arithmetic expression.
Declare total as the product of 6 and 7, then print total.
Run the code to see the result.The operator produces the numeric value, and const stores the verifiable result.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.