Login
Remember
Register
Ask a Question
What will be the output of following code snippet? function foo(a = 10, b = 5) { console.log(a, b); } foo(6);
0
votes
asked
Jan 21, 2020
in
ECMAScript
by
GeorgeBell
What will be the output of following code snippet?
function foo(a = 10, b = 5) {
console.log(a, b);
}
foo(6);4
(1)10, 5
(2)10, 6
(3)undefined error
(4)6, 5
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 21, 2020
by
GeorgeBell
6, 5
...