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
Array push and length
JavaScript code walkthrough · Question 2
easy
Arrays
Code
Read carefully. What does this print?
1
const
a
=
[
1
,
2
]
;
2
a
.
push
(
3
)
;
3
a
.
push
(
4
)
;
4
console
.
log
(
a
.
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