0

outpout code

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

5th Dec 2020, 1:03 PM
julie Metz
julie Metz - avatar
3 Answers
+ 1
42
5th Dec 2020, 1:09 PM
Mantafounis Panagiotis
Mantafounis Panagiotis - avatar
+ 1
run the code yourself to get the answer. anyways, it's 42
5th Dec 2020, 1:08 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
0
thanks
5th Dec 2020, 1:33 PM
julie Metz
julie Metz - avatar