ELI5. What does "return" do in programming? I read about it a lot and still dont understand the purpose. Submitted by BlendsLoL t3_100291e on December 31, 2022 at 7:57 PM in explainlikeimfive 9 comments 0
eloel- t1_j2f2gw8 wrote on December 31, 2022 at 8:08 PM 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. Permalink 1
Viewing a single comment thread. View all comments