+ 3

Could someone explain me how this code works line to line? Thanks.

function substr(x,y){ return x; return y; return x-y; } document.write(substr(6,2));

26th May 2018, 7:40 PM
Rastislav Romanec
Rastislav Romanec - avatar
3 Answers
+ 2
it will return x=6 only?
26th May 2018, 7:48 PM
Rastislav Romanec
Rastislav Romanec - avatar