0
What is the real function of 'return' and differance between print and return?
2 Answers
+ 8
Print will print somthing to the console "your screen"
Return will return somthing back from were the function was called. For example:
function name(par){
return par*par;}
//now we call it
name(here we pass 1 argument to the function the function will do somthing with it and return somthing back to this caller);
and thats it đ.
+ 1
Thanks