New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Apart from calculation when do i use return in function?
2 Answers
+ 3
To stop executing further instructions.
0
when you want to return int / string / boolean from a method (without void in the namn) thats when u return