About 15,500 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 JavaScript …

  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. javascript - Functions that return a function: what is the difference ...

    Calling the function with () in a return statement executes the function, and returns whatever value was returned by the function. It is similar to calling var x = b();, but instead of assigning the return value of …

  4. 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 numbers, …

  5. 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 immediately …

  6. 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.

  7. 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.

  8. JavaScript Function Return Statement: A Complete Beginner's Guide

    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 …

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

    Jan 23, 2026 · The return statement is used to return a particular value from the function to the function caller. The function will stop executing when the return statement is called. The return statement …

  10. JavaScript Return Statements - freeCodeCamp.org

    Jan 21, 2020 · When a return statement is called in a function, the execution of this function is stopped. If specified, a given value is returned to the function caller. If the expression is omitted, undefined is …