1.

What will be the output of following code snippet?

Answer»

What will be the output of following CODE snippet?
function foo(a = 10, b = 5) {
console.log(a, b);
}
foo(6);
(1)10, 5
(2)10, 6
(3)undefined ERROR
(4)6, 5

Answer:-(4)6, 5



Discussion

No Comment Found