Frontend
Interviews
.dev
Problems
615. for...in Over Arrays
Easy
•
...
Predict the output.
for
(
const
k
in
[
'a'
,
'b'
]
)
{
console
.
log
(
typeof
k
,
k
)
}
What is the correct output/behavior?
number 0 then number 1
string 0 then string 1
a then b
TypeError
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer