CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Reading Past the End of an Array

JavaScript code walkthrough · Question 41
easyArrays

Code

Read carefully. What does this print?
1let arr = [10, 20, 30];
2console.log(arr[0]);
3console.log(arr[3]);
4console.log(arr.length);

Your answer