+ 1

JS - why this code doesn’t work ? (simple thing)

Hi there ! Why this code doesn’t show me output ? function abc(a, b) { var c = a - b; return c; document.write( abc(40, 30) ); }

8th Jan 2019, 3:53 PM
Evheniy Borvinskiy
Evheniy Borvinskiy - avatar
1 Answer
+ 4
Try to put document.write(abc(40,30)); OUTSIDE the function
8th Jan 2019, 4:03 PM
KrOW
KrOW - avatar