in ECMAScript by (5.1k points)
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 (5.1k points)
6, 5

Related questions

+1 vote
asked Oct 22, 2021 in Artificial Intelligence by DavidAnderson (8.9k points)
...