+ 1
Whats the difference
between return,print and output. i guess its all the same. or is it different.
1 Réponse
+ 2
First, 'output' isn't a js keyword, while two others are...
'output' is litterally 'put out', is an idiom covering a generic meaning of exporting producted result. In case of a "return" statement ( wich export a result as a returned value to the call point in the script ), as well as in case of a 'print' function (in JS there's a built-in one calling the browser print feature).