+ 1

Can we use multiple time to return multiple value of different variable in one function

20th Feb 2019, 11:37 AM
Dash
Dash - avatar
2 Answers
+ 3
This discussion may be related to your question: https://www.sololearn.com/Discuss/1695393/?ref=app
20th Feb 2019, 7:19 PM
Ipang
+ 2
Nope, you can return only 1 value in a function. If you want to return multiple values, the best way would be returning an array of multiple objects.
20th Feb 2019, 11:42 AM
Seniru
Seniru - avatar