About 55,800,000 results
Open links in new tab
  1. JavaScript Functions - 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.

  2. Functions - JavaScript | MDN

    Jul 8, 2025 · A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some …

  3. Functions in JavaScript - GeeksforGeeks

    Sep 13, 2025 · Functions in JavaScript are reusable blocks of code designed to perform specific tasks. They allow you to organize, reuse, and modularize code. It can take inputs, perform …

  4. Functions - web.dev

    Mar 31, 2024 · A function is a modular, reusable block of statements used to perform a set of related tasks, such as calculating and returning a value based on arguments provided to the …

  5. Functions - The Modern JavaScript Tutorial

    Oct 14, 2022 · The function keyword goes first, then goes the name of the function, then a list of parameters between the parentheses (comma-separated, empty in the example above, we’ll …

  6. JavaScript Functions

    To specify a return value for a function, you use the return statement followed by an expression or a value, like this: For example, the following add() function returns the sum of the two arguments:

  7. JavaScript Function Definitions - W3Schools

    JavaScript functions are defined with the function keyword. You can use a function declaration or a function expression.

  8. JavaScript Functions: From Basics to Advanced

    Typically, a function returns some calculated value using paramters or an expression from a function. For example, the following sum function adds two parameters values using the + …

  9. JavaScript/Functions - Wikibooks, open books for an open world

    Feb 13, 2023 · JavaScript supports the software development paradigm functional programming. Functions are a data type derived from Object; they can be bound to variables, passed as …

  10. Functions - JavaScript | MDN

    Jul 8, 2025 · Generally speaking, a function is a "subprogram" that can be called by code external (or internal, in the case of recursion) to the function. Like the program itself, a function is …