+ 1

What is the difference between return and print?

Output

1st Sep 2019, 6:39 PM
Joy
4 Answers
+ 4
return is part of a cycle where as print is the output that you see after running your code In programming, return is a statement that tells the program to leave the subroutine and return to the return address, directly after where the subroutine was called.
1st Sep 2019, 6:53 PM
BroFar
BroFar - avatar
+ 1
also: take a look at/google “pure and impure functions”
1st Sep 2019, 7:39 PM
Brave Tea
Brave Tea - avatar