Thursday , September 19 2024

Examine the following code: let steps = [3, 2, 1]; for (let n of steps) console.log(n); What will appear on the console as a result?

Questions BankCategory: JavaScript Essentials 1Examine the following code: let steps = [3, 2, 1]; for (let n of steps) console.log(n); What will appear on the console as a result?
Examine the following code:

let steps = [3, 2, 1];
for (let n of steps) console.log(n);

What will appear on the console as a result?

  • 1 2 3
  • "[3, 2, 1]"
  • 0 1 2
  • 3 2 1

More Questions: JavaScript Essentials 1 – JSE1: Module 4 Test