ELI5. What does “return” do in programming? I read about it a lot and still dont understand the purpose.

346 views

ELI5. What does “return” do in programming? I read about it a lot and still dont understand the purpose.

In: 0

10 Answers

Anonymous 0 Comments

In most cases, it ends the current function and resolves in either a value or void/undefined depending on function type. Of course it depends on language and this isn’t necessarily true for all languages, but it covers most.

You are viewing 1 out of 10 answers, click here to view all answers.