About 348,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. JavaScript Return Statement - GeeksforGeeks

    Feb 7, 2025 · The return statement in JavaScript is used to end the execution of a function and return a value to the caller. It is used to control function behaviour and optimise code …

  3. javascript - Functions that return a function: what is the …

    the statement 'return b();' means to execute a function named 'b' and then return what function 'b' return. but 'b' returns nothing, then this statement 'return b()' returns nothing either. If b() return …

  4. How To Use Return in JavaScript? - GeeksforGeeks

    Feb 17, 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 …

  5. return - JavaScript | MDN - MDN Web Docs

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

  6. Javascript: return function with predefined arguments

    Jun 7, 2011 · Functions that return a function: what is the difference between `return func();` and `return func;`?

  7. What does "return function () { ... }" do in JavaScript?

    Aug 4, 2011 · This code creates a function generator. The first function (whose reference is stored in f) accepts a reference to another function (a). Then f creates a function that closes over the …

  8. JavaScript Functions - W3Schools

    When JavaScript reaches a return statement, the function will stop executing. If the function was invoked from a statement, JavaScript will "return" to execute the code after the invoking …

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

  10. Part 6: JavaScript Functions → Returning Functions from Functions

    Mar 23, 2019 · Functions that accept functions that return functions are common for any js code. Functions are the same data as numbers or strings, so functions can be passed to other …

Refresh