Frontend
Interviews
.dev
Problems
625. call vs apply Argument Passing
Easy
•
...
Predict the output.
function
sum
(
a
,
b
)
{
return
a
+
b
}
console
.
log
(
sum
.
call
(
null
,
[
1
,
2
]
)
)
What is the correct output/behavior?
3
12
1,2undefined
NaN
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer