[Solved] What will the following code regarding arrays print?


                 +--- arr[2]
                 |
                 v 
let arr = [1, 2, 3]; <------ arr.length = 3
console.log(arr.length + arr[2]);
                             ^
                             |
                             +-- arr at index 2 returns 3

let arr = [1, 2, 3]; //arr.length = 3
console.log(arr.length + arr[2]); // arr[2] = 3

0

solved What will the following code regarding arrays print?