Could someone explain me how this code works line to line? Thanks. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
1 Answer
+ 2
it will return x=6 only?
26th May 2018, 7:48 PM
Rastislav Romanec
Rastislav Romanec - avatar