New course! Every coder should learn Generative AI!
Try a free lesson0
Why is it 1.
function test(a,b=0, c =2) { return a/b/c } console.log(test(2,1));
1 Answer
+ 7
Because in test(2,1)
a is 2
b is 1
c is 2
2/1/2=(2/1)/2
=2/2
=1
function test(a,b=0, c =2) { return a/b/c } console.log(test(2,1));