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

    Description 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 …

  2. return - JavaScript | MDN - MDN Web Docs

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

  3. Functions - JavaScript | MDN - MDN Web Docs

    Jul 8, 2025 · Functions are one of the fundamental building blocks in JavaScript. A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a …

  4. JavaScript else Statement - W3Schools

    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

  5. JavaScript Function Study Path - W3Schools

    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

  6. JavaScript Tutorial - W3Schools

    W3Schools maintains a complete JavaScript reference, including all HTML and browser objects. The reference contains examples for all properties, methods and events, and is continuously updated …

  7. The Modern JavaScript Tutorial

    2 days ago · Modern JavaScript Tutorial: simple, but detailed explanations with examples and tasks, including: closures, document and events, object oriented programming and more.

  8. How to Return a Value in JavaScript - ThoughtCo

    May 6, 2025 · JavaScript functions return values using the return statement after all necessary code has executed. Using parameters, you can pass information to functions, avoiding the use of global …

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

  10. Using the Fetch API - Web APIs | MDN - MDN Web Docs

    Aug 20, 2025 · Using the Fetch API The Fetch API provides a JavaScript interface for making HTTP requests and processing the responses. Fetch is the modern replacement for XMLHttpRequest: …