๐จ JavaScript Dictionary
Every keyword, operator, and symbol explained.
let keywordBlock-scoped variable that can be reassigned.
let x = 5;
const keywordBlock-scoped constant that cannot be reassigned.
const PI = 3.14;
function keywordDeclares a named function.
function greet(name) { return name; }=> operatorArrow function โ shorter syntax, no own this binding.
const add = (a, b) => a + b;
async/await keywordMarks function async; await pauses until Promise resolves.
const data = await fetch(url);
=== operatorStrict equality โ checks value AND type.
5 === 5
console.log functionPrints to browser or Node.js console.
console.log(x);
fetch functionMakes HTTP request, returns Promise.
const res = await fetch("/api");JSON.parse functionParses JSON string to JS object.
const obj = JSON.parse(str);
Promise classRepresents eventual completion of async operation.
new Promise((res, rej) => {})