Thursday , September 19 2024

Examine the following code: let x = [10, 20, 30, 40]; let y = [50, 60]; x.reverse().push(y); console.log(x.length); What will appear on the console as a result?

Questions BankCategory: JavaScript Essentials 1Examine the following code: let x = [10, 20, 30, 40]; let y = [50, 60]; x.reverse().push(y); console.log(x.length); What will appear on the console as a result?
Examine the following code:

let x = [10, 20, 30, 40];
let y = [50, 60];
x.reverse().push(y);
console.log(x.length);

What will appear on the console as a result?

  • 6
  • 5
  • 2
  • 4

More Questions: JavaScript Essentials 1 – JSE1: Final Test