JavaScript

Arrow Function

Definition

A compact function syntax introduced in ES6. Arrow functions do not have their own `this`, `arguments`, or `super` bindings, making them ideal for callbacks and methods that need to preserve the outer `this` context.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms