Link Search Menu Expand Document

Use the JavaScript Console to Check the Value of a Variable

Summary

  • console.log() can be useful for debugging.

Final Code

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


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