The difference between functions with return and without return:

Revision en1, by pokpong007, 2025-09-08 20:51:40

A function with return value uses return to send a result back, so you can store it in a variable or use it further.

A function without return value has no return (or doesn’t send data back), so it just runs and ends.

Tags beginner

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English pokpong007 2025-09-08 20:57:57 167
en1 English pokpong007 2025-09-08 20:51:40 284 Initial revision (published)