🌐
W3Schools
w3schools.com › js › js_arrow_function.asp
JavaScript Arrow Functions
In this case, this does not refer to the person object. ... Parentheses are required for zero or multiple parameters. Arrow functions do not bind this. Arrow functions are not hoisted. You have now learned the most important concepts about JavaScript functions. Try the quiz to test your knowledge. ... If you want to use W3Schools ...
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Functions › Arrow_functions
Arrow function expressions - JavaScript - MDN Web Docs
February 21, 2026 - Because a class's body has a this context, arrow functions as class fields close over the class's this context, and the this inside the arrow function's body will correctly point to the instance (or the class itself, for static fields).
Discussions

Can somebody explain to me the point of arrow functions? I seriously have no clue what their purpose is.
Lots of other people have addressed the scoping of this but another benefit that is the primary reason why I use them for React components and handlers is that you can use them to conveniently apply types to a function. This is useful for getting types of function arguments with a more concise syntax. export const MyComponent: React.FC = (props) => { const handleOnChange: InputProps["onChange"] = (event) => {}; // ... }; More on reddit.com
🌐 r/learnjavascript
85
298
July 19, 2022
When (and why) you should use ES6 arrow functions — and when you shouldn’t
What do you mean when you say "2. No self-referencing If your function needs to have a self-reference at any point (e.g. recursion, an event handler that needs to unbind), it will not work." At least Recursion works fine in arrow functions: ​const​ ​helper​ ​=​ (​input​, ​accumulator​ ​=​ ​0​) ​=>​ {     ​if​ (​calculateFuel​(input) ​<​ ​1​) ​return​ ​parseInt​(accumulator);     ​let​ neededFuel ​=​ ​calculateFuel​(input);     ​return​ ​helper​(neededFuel, (accumulator ​+=​ neededFuel)); }; Or am i missing something? (Uch shitty formatting due to mobile) More on reddit.com
🌐 r/javascript
11
21
March 31, 2020
Why arrow functions have become so popular? Aren't we overusing them?

I think you said it yourself, it looks short and nice. That code you linked as an example was easily readable because of their use. There is a small adjustment when you first encounter them as they look at bit alien but once used to them they just become part of your workflow.

More on reddit.com
🌐 r/javascript
72
26
December 7, 2015
ELI5: Javascript arrow function notation?
a few reasons. first, brevity. () => {} is fewer chars than function(){}. if its a one-liner, you don't need the curly braces and return is implied. second, javascript has a .. strange .. take on the this keyword. it differs from traditional OOP, like c++, java, or c# etc. in more traditional OOP, in a member function of a class, this refers to the current instance of the class. its usually a syntax error anywhere else to say this. in javascript, this of a function has different meanings depending on how and where it's used. if you have a func var, you can execute it with different this's. if you're used to traditional OO this, then js this has easy to miss bugs and unexpected insanity. arrow functions help alleviate javascript's this oddity. arrows have a fixed this. whatever this is immediately before the arrow func, this will be the same inside that arrow. whomever executes that arrow func cannot decide for them self to attach a different this; only the original this remains. this is particularly useful in making a func var inside of a member func of a class. there this has the traditional OOP meaning (current instance), and inside arrow funcs it maintains that meaning. according to mdn, you can't even use tricks to force a silly new this onto an existing arrow func. ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions ) arrows also do not have their own arguments var. they inherit the arguments from their immediate scope, just like this. (arguments is a special variable in javascript. arrows can have their own arguments, but inside an arrow you're getting the same arguments as the surrounding scope.) More on reddit.com
🌐 r/eli5_programming
5
10
November 2, 2017
🌐
W3Schools
w3schools.in › javascript › arrow-functions
Learn to Use JavaScript Arrow Functions - W3Schools
JavaScript arrow functions are compact function expressions that use arrow notation (=>) to define the function body. Unlike regular functions, arrow functions do not have a function keyword, return keyword, or curly braces ({}) around the function body. An arrow function has two main parts: ...
🌐
W3docs
w3docs.com › learn-javascript › arrow-functions-the-basics.html
Mastering JavaScript Arrow Functions
They are especially useful for short functions and are extensively used in modern JavaScript libraries and applications. ... This creates a function that takes param1, param2, ..., paramN as parameters and returns the result of expression. For single-line functions, arrow functions allow a clean and concise syntax.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › arrow-functions-in-javascript
Arrow functions in JavaScript - GeeksforGeeks
Arrow functions with multiple parameters, like (param1, param2) => { }, simplify writing concise function expressions in JavaScript, useful for functions requiring more than one argument.
Published   January 16, 2026
🌐
W3Schools
w3schools.com › js › exercise.asp
Exercise: - JS Arrow Function
For In Loops3 q · For Of Loops3 q · While Loops3 q · Break and Continue3 q · Iterables3 q · Sets3 q · Set Methods3 q · Maps3 q · Map Methods3 q · TypeOf3 q · Type Conversion3 q · Destructuring3 q · Bitwise3 q · Regular Expressions3 q · Operator Precedence3 q · Error Handling3 q · Scope3 q · Hoisting3 q · Strict Mode4 q · The this Keyword3 q · Arrow Function3 q ·
🌐
JavaScript.info
javascript.info › tutorial › the javascript language › javascript fundamentals
Arrow functions, the basics
April 14, 2022 - The arrow functions that we’ve seen so far were very simple. They took arguments from the left of =>, evaluated and returned the right-side expression with them. Sometimes we need a more complex function, with multiple expressions and statements. In that case, we can enclose them in curly braces.
🌐
Programiz
programiz.com › javascript › arrow-function
JavaScript Arrow Function
In this tutorial, you will learn about JavaScript arrow functions with the help of examples.
Find elsewhere
🌐
W3Schools
w3schools.com › js › tryit.asp
The Arrow Function
The W3Schools online code editor allows you to edit code and view the result in your browser
🌐
W3Schools
w3schools.com › js › js_es6.asp
JavaScript 2015 (ES6)
Read more about const in the chapter: JavaScript Const. Arrow functions is a short syntax for writing function expressions.
🌐
W3Schools
w3schools.io › es6-lambda-functions
ES6 Made Easy: Examples of Arrow and Lambda Functions - w3schools
Learn how to use Arrow and Lambda functions in ES2015 with our easy to follow JavaScript guide with arguments single body examples
🌐
Reddit
reddit.com › r/learnjavascript › can somebody explain to me the point of arrow functions? i seriously have no clue what their purpose is.
r/learnjavascript on Reddit: Can somebody explain to me the point of arrow functions? I seriously have no clue what their purpose is.
July 19, 2022 - This style of functional/array-programming would be much clumsier with normal functions. Edit: Yes, I know, that mapping the value isn't required in this example. It's just supposed to be a simple exmaple for a filter-map-reduce-flow. /Edit ... Here is a guide from w3schools that shines a little light on arrow functions: https://www.w3schools.com/js/js_arrow_function.asp
🌐
W3Schools
w3schoolsua.github.io › js › js_arrow_function_en.html
JavaScript Arrow Function. Lessons for beginners. W3Schools in English
The following table defines the first browser versions with full support for Arrow Functions in JavaScript:
🌐
Wes Bos
wesbos.com › arrow-functions
JavaScript Arrow Functions Introduction - Wes Bos
September 8, 2016 - The benefit to using a named function ... the name of the function that it got called in. If you use an arrow function, you cannot name them....
🌐
Nickbanken
nickbanken.github.io › LOCD › w3schools.com › www.w3schools.com › js › js_arrow_function.html
JavaScript Arrow Function
The following table defines the first browser versions with full support for Arrow Functions in JavaScript: ... Get certified by completing a course today! ... If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: ... Your message has been sent to W3Schools.
🌐
W3Schools
w3schools.com › js › js_function_expressions.asp
JavaScript Function Expressions
Immediately Invoked Function ... Function expressions are statement and should end with ; (semicolon). Arrow functions are not hoisted....
🌐
W3Schools
w3schools.com › js › tryit.asp
W3Schools online HTML editor
The W3Schools online code editor allows you to edit code and view the result in your browser
🌐
DigitalOcean
digitalocean.com › community › tutorials › understanding-arrow-functions-in-javascript
Understanding Arrow Functions in JavaScript | DigitalOcean
August 28, 2021 - You learned that arrow functions are always anonymous, do not have a prototype or constructor, cannot be used with the new keyword, and determine the value of this through lexical scope. Finally, you explored the new syntactic enhancements available to arrow functions, such as implicit return and parentheses omission for single parameter functions. For a review of basic functions, read How To Define Functions in JavaScript.
🌐
JavaScript Tutorial
javascripttutorial.net › home › javascript tutorial › javascript arrow functions
A Gentle Introduction to JavaScript Arrow Function
November 14, 2024 - This tutorial shows you how to use JavaScript arrow function syntax in ES6 and provides you with some pitfalls of using arrow functions.
🌐
W3Schools
w3schools.com › js › js_functions.asp
JavaScript Function Study Path
A function expression is a function stored in a variable · The variable name can be used to call the function · Step 7Intermediate · Arrow Functions is a short syntax for function expressions · You can skip the function keyword · You can ...