+ 1

Can someone explain to me what does return do?

1st May 2019, 6:03 PM
Aleksa Glavas
Aleksa Glavas - avatar
9 Antworten
+ 6
it returns the result of a function (most simple explanation)
1st May 2019, 8:23 PM
marjel101
marjel101 - avatar
+ 5
yes return, returns a value. once return has been read by code , the rest of the code is ignored...
1st May 2019, 10:05 PM
Kae🙌🏽☕️
Kae🙌🏽☕️ - avatar
+ 5
It a used to return back a value
15th Jun 2019, 6:58 PM
GeneralZod
GeneralZod - avatar
+ 5
From a method. Or function
15th Jun 2019, 6:58 PM
GeneralZod
GeneralZod - avatar
+ 4
It returns an object for example when you create an function or method I,LL give you an example In Java public String sayHello(){ Return "hello world"; } Now this returns hello world which is a data types of string The return statement
15th Jun 2019, 6:58 PM
GeneralZod
GeneralZod - avatar
+ 1
It's in the same word re-turn
1st May 2019, 6:10 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
0
What
1st May 2019, 6:11 PM
Aleksa Glavas
Aleksa Glavas - avatar
0
Return what?
1st May 2019, 6:11 PM
Aleksa Glavas
Aleksa Glavas - avatar