Frontend
Interviews
.dev
Problems
677. Array.from with length Object
Easy
•
...
Predict the output.
const
a
=
Array
.
from
(
{
length
:
3
}
,
(
_
,
i
)
=>
i
)
console
.
log
(
a
.
join
(
'-'
)
)
What is printed in the console?
0-1-2
1-2-3
0,1,2
undefined
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer