Why isn't this right?

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


let a = 5;
let b = 1;
a++;
// Only change code below this line


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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36

Challenge: Use the JavaScript Console to Check the Value of a Variable

Link to the challenge:

Hi @elizabethfauquier !

Welcome to the forum!

The directions want you to console.log the variable a.

You wrote this which is a string not a variable

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.