+ 2

Can anybody understand me this.?

const test = (a, b = 3, c = 42) => a + b + c; console.log(test(5));

15th Mar 2019, 5:48 PM
Neeraj kumar
Neeraj kumar - avatar
1 Answer
+ 5
// Create a function with a single line with 3 parameter variables (a, b=3 by default and c=42 by default), make the additions using a "+" operator for the 3 variables and print it using console.log().
15th Mar 2019, 5:53 PM
program
program - avatar