Analyze the following code: let id = “100”; { let id = 200; id = id + 1; console.log(id); } What will appear to the console as a result?

Questions BankCategory: JavaScript Essentials 1Analyze the following code: let id = “100”; { let id = 200; id = id + 1; console.log(id); } What will appear to the console as a result?
Analyze the following code:

let id = "100";
{
    let id = 200;
    id = id + 1;
    console.log(id);
}

What will appear to the console as a result?

  • 101
  • 1001
  • 201
  • 200

More Questions: JavaScript Essentials 1 – JSE1: Final Test