+ 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) ); }
1 Answer
+ 4
Try to put document.write(abc(40,30));
OUTSIDE the function