About 192,000 results
Open links in new tab
  1. JavaScript return Statement - W3Schools

    The return statement stops the execution of a function and returns a value. Read our JavaScript Tutorial to learn all you need to know about functions. Start with the introduction chapter about …

  2. return - JavaScript | MDN

    Jul 8, 2025 · The return statement ends function execution and specifies a value to be returned to the function caller.

  3. How To Use Return in JavaScript? - GeeksforGeeks

    Jul 23, 2025 · The return statement in JavaScript is used to end a function execution and send a value back to where the function was called. It allows the function to provide useful results, like …

  4. The return keyword - web.dev

    Mar 31, 2024 · Use return to specify the value that the function should produce as a final result. When the interpreter reaches a return statement, the function that contains that statement …

  5. What Is a Return Statement in JavaScript? Explained Simply

    Jul 26, 2025 · Learn what a return statement is in JavaScript, how it works inside a function, and why it’s useful. This beginner-friendly guide includes examples, a fun analogy, and a simple …

  6. JavaScript Function Return Statement: A Complete Beginner's …

    Aug 11, 2025 · By adding a return, a function goes from just carrying out instructions to returning meaningful data. In this guide, we’ll break down the JavaScript return statement, explain how it …

  7. JavaScript return Statement: Returning Value from Function

    Feb 6, 2025 · A comprehensive guide to the JavaScript return statement, covering its purpose, usage, and importance in functions for returning values and controlling execution flow.

  8. JavaScript return Statement (With Examples) - Tpoint Tech

    Apr 2, 2025 · We can return primitive values (such as Boolean, number, string, etc.) and Object types (such as functions, objects, arrays, etc.) by using the return statement.

  9. How to Return a Value in JavaScript - ThoughtCo

    May 6, 2025 · JavaScript passes a value from a function back to the code that called it by using the return statement. The value to be returned is specified in the return. That value can be a …

  10. JavaScript Return - Function Return Values - ZetCode

    Apr 16, 2025 · Learn how to use the return keyword in JavaScript to return values from functions, with examples and explanations.