0
does return ignores the operation after it?
function y(a){ return --a; a*=5; } document.write(y(8)); //why the answer is 7?
3 Answers
+ 2
Yep.
+ 2
Note that if it was 'return a--;' it would return 8
0
thank youđ
function y(a){ return --a; a*=5; } document.write(y(8)); //why the answer is 7?