JavaScript

ES6 Arrow Functions Guide

📅 December 05, 2025 ⏱️ 1 min read 👁️ 5 views 🏷️ JavaScript

Arrow functions provide a shorter syntax for writing functions.

const add = (a, b) => a + b;
const numbers = [1, 2, 3].map(n => n * 2);
console.log(numbers); // [2, 4, 6]
🏷️ Tags:
javascript es6 arrow functions

📚 Related Articles