About 947,000 results
Open links in new tab
  1. Arrow function expressions - JavaScript | MDN - MDN Web Docs

    Apr 28, 2025 · An arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate limitations in usage: Arrow …

  2. JavaScript Arrow Function - W3Schools

    With arrow functions the this keyword always represents the object that defined the arrow function. Let us take a look at two examples to understand the difference. Both examples call …

  3. javascript - Arrow function with multiple statements in one line ...

    Essentially it allows you to do multiple operations in a single statement. It's used commonly in for loops and to assign multiple variables in a single statment, eg.: var a = 1, b = 2;. Just because …

  4. Arrow functions, the basics - The Modern JavaScript Tutorial

    Apr 14, 2022 · Arrow functions are handy for simple actions, especially for one-liners. They come in two flavors: Without curly braces: (...args) => expression – the right side is an expression: …

  5. How to Use JavaScript Arrow Functions – Explained in Detail

    Nov 30, 2023 · Suppose you have a single-line function that prints a string to the console. Using the function keyword, here’s how you would write the function: console.log(`Hello, ${name}!`); } …

  6. Arrow functions in JavaScript - GeeksforGeeks

    4 days ago · The arrow function's concise syntax eliminates the need for the function keyword and curly braces for single-line expressions. 1. Arrow Function without Parameters

  7. JavaScript Arrow Functions – A Friendly Introduction - Alex …

    Mar 16, 2020 · One interesting thing on arrow functions is that they have an implicit return. Meaning, arrow functions return values automatically. You don’t have to use the return …

  8. Arrow Functions in JavaScript: A Comprehensive Guide

    Mar 25, 2024 · Arrow functions, also known as fat arrow functions, are a new way to write concise anonymous function expressions in JavaScript. They provide a more streamlined syntax …

  9. Arrow Functions in JavaScript: Fat & Concise Syntax - SitePoint

    Mar 9, 2022 · By using arrow functions, you can write concise one-liners with implicit return and finally forget about old-time hacks to solve the binding of the this keyword in JavaScript.

  10. javascript - Single-Line to Multi-Line ES6 Fat Arrow Function?

    Jan 13, 2017 · I'm learning ES6 fat arrow functions. What is the correct way to change this code, so as to be able to put another line, even const a = 100; in the place indicated so that I can …

  11. Some results have been removed
Refresh