Use the JavaScript Console to Check the Value of a Variable

Tell us what’s happening:

Your code so far

let a = 5;
let b = 1;
// Add your code below this line

let sumAB = a + b;

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36.

Link to the challenge:

The instructions state:

Use the console.log() method to print the value of the variable a where noted in the code.

Instead you used a console.log statement to print the value of the variable sumAB.

1 Like