CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #41

Reading Past the End of an Array

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