Skip to content
menu
arrow_back
CJ
Coding With Joseph
search
light_mode
Light
desktop_windows
System
dark_mode
Dark
bolt
15
free / day
Sign in
Create account
←
Back to Code Walkthrough
Reading Past the End of an Array
JavaScript code walkthrough · Question 41
easy
Arrays
Code
Read carefully. What does this print?
1
let
arr
=
[
10
,
20
,
30
]
;
2
console
.
log
(
arr
[
0
]
)
;
3
console
.
log
(
arr
[
3
]
)
;
4
console
.
log
(
arr
.
length
)
;
Your answer
What will this code output?
Submit answer
←
Previous
Next
→
home
Home
grid_view
Problems
calendar_today
Daily
workspace_premium
Pricing
menu
Menu