0
outpout code
What is the output of this code? function magic(a, b = 40) { return a + b; } console.log(magic(2));
3 Answers
+ 1
42
+ 1
run the code yourself to get the answer.
anyways, it's 42
0
thanks
What is the output of this code? function magic(a, b = 40) { return a + b; } console.log(magic(2));