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
Learn More
Related Terms
A function passed as an argument to another function, to be executed later. Callbacks are the foundation of asynchronous JavaScript and are used extensively in event handling and array methods.
This KeywordA special keyword that refers to the object a function is called on. Its value depends on how a function is invoked: in a method, this refers to the owner object; in a regular function, it defaults to globalThis (or undefined in strict mode).
Higher-Order FunctionA function that either takes one or more functions as arguments, returns a function, or both. Common examples include map, filter, reduce, and forEach.