0 votes
in ECMAScript by
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

1 Answer

0 votes
by
6, 5

Related questions

0 votes
asked Mar 13 in JavaScript by DavidAnderson
0 votes
asked Aug 18, 2021 in AngularJS Packaging and Testing by SakshiSharma
...