Codington
0 of 6 problems solved • 0%
Use in a course

Exercise prompt

Calculate in the Console

JavaScript can evaluate an expression before logging its result. Numbers do not need quotation marks, and + adds two numbers.

Example

console.log(3 + 4);

JavaScript calculates 3 + 4, then displays the result 7.

Your task

Replace the comment with an addition expression using 8 and 4. The console should show 12.