0

Please help me

What is the output of this code? function magic(a, b = 40) { return a + b; } console.log(magic(2));

11/22/2019 2:29:43 PM

Samir Bhandari

1 Answer

New Answer

0

Output: 42 in console.log(magic(2)) the argument is passed to the first parameter (i.e. to a)