in ECMAScript by
Q:
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

▼ Show 1 Answer

0 votes
by
6, 5
Learn More with Madanswer

Related questions

0 votes
asked Jul 28, 2019 in R Language by Aarav2017
0 votes
asked Jan 21, 2020 in ECMAScript by GeorgeBell
...