Use the JavaScript Console to Check the Value of a Variable

Use the JavaScript Console to Check the Value of a Variable
0

#1

Tell us what’s happening:

Your code so far


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


let sumAB = a + b;
console.log(sumAB);

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:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/debugging/use-the-javascript-console-to-check-the-value-of-a-variable


#2

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.