Arrow Functions in JavaScript

Características ES6Desestructuración

Arrow functions are a shorter, more concise way to write function expressions. Introduced in ES6, they have special behavior with 'this' and are widely used in modern code.

Basic Syntax

Single Parameter and Implicit Return

Multi-line Arrow Functions

Use curly braces and explicit return for multiple statements.

Lexical 'this' Binding

Arrow functions don't have their own 'this' – they inherit from the surrounding scope. This is very useful in callbacks.

When NOT to Use Arrow Functions

  • As object methods when you need 'this' to refer to the object (use regular functions).
  • When you need 'arguments' object.
  • As constructors (no new).

Quick Quiz

Hemos revisado y comprobado los materiales, pero aún pueden existir errores. El contenido se ofrece únicamente con fines educativos, así que úsalo bajo tu propia responsabilidad y verifica con otras fuentes si es necesario.

✨ Pregunta a Lara — tu compañera de estudio con IA

Desbloquea soporte de aprendizaje personalizado. Lara puede explicar lecciones, resumir temas y responder tus preguntas — disponible desde el plan Go y superiores.


Lara te ayuda a aprender más rápido — exclusivo para los miembros ReadyTools Go, Plus y Max.

Sigue Tu Progreso 🚀

Aprende más fácilmente siguiendo tu progreso completamente gratis.