JavaScript Reference

The language of the modern web, used for frontend, backend, and everything in between. Essential syntax and code samples for professional development.

ES6 Variables

const id = 123; let status = "active";

Arrow Functions

const add = (a, b) => a + b;

Array Methods

arr.map(x => x * 2); arr.filter(x => x > 0);

Objects

const user = { name: "JS", age: 25 };

Async/Await

async function fetch() { const res = await api(); }

Destructuring

const { name, age } = user;