+ 5

Return, plz, help

I just can not understand the construction of a return, would you not be able to explain it to me? Thanks :3 google translate, XD

7th Jan 2018, 1:19 PM
Non
Non - avatar
5 Antworten
7th Jan 2018, 1:27 PM
Karan Kumar
Karan Kumar - avatar
+ 6
return is used when you want to return some value from function and used it later in main program execution.
7th Jan 2018, 1:34 PM
Vukan
Vukan - avatar
+ 5
maybe you understand better with examples in some other languages... https://www.sololearn.com/learn/JavaScript/1148/ https://www.sololearn.com/learn/PHP/1836/
7th Jan 2018, 1:40 PM
Vukan
Vukan - avatar
+ 3
yes, but i did not understand anything
7th Jan 2018, 1:29 PM
Non
Non - avatar
+ 3
@Vukan Something like if the function was fulfilled that from it by means of return it is possible to pull out result?
7th Jan 2018, 1:38 PM
Non
Non - avatar