Please explain me difference between echo command and return command? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Please explain me difference between echo command and return command?

instead of return command we can use echo then what is the use of return command. I did not understand return command please help me friends.

19th Aug 2017, 10:56 AM
Sahil
Sahil - avatar
1 Answer
+ 8
echo use to display the text. return use in function to tell what is the output of this function or it can use to stop the progress of the function
19th Aug 2017, 10:59 AM
Nithiwat
Nithiwat - avatar