0

Return function

I️ still don’t get how to return command is useful? Why would you want to save the data when the program is already going to save it? Is it useful when you change the variables assignment but still want to have the original variable assignment?

10th Nov 2017, 6:12 PM
Ole113
Ole113 - avatar
2 Answers
+ 2
See the return function gives the function a value! function Hello(){ return 12; } whenever i call Hello() in the code it will return 12 soo.. alert(2+Hello()); And I'll get 14 since Hello()returns two!
10th Nov 2017, 6:47 PM
᠌᠌Code X
᠌᠌Code X - avatar
0
Thanks Brains
17th Nov 2017, 1:45 AM
Ole113
Ole113 - avatar