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 ответов
+ 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?