JavaScript Statements
Statements and declarations. This category documents 23 JavaScript statements entries, and each page gives you the full syntax, the parameter list, the return value, a runnable example, time complexity, the TypeScript signature, and the mistakes developers most often make with that API. The entries are: if...else, for, for...of, while, switch, try...catch, throw, const, let, import, export, async function, await, do...while, with, label, export default, export { }, export * from, export { default }, import() (dynamic), import.meta, import.meta.url. For a structured walkthrough of the whole topic, read the Statements guide. Not sure which method you need? if...else and for are the most commonly used starting points in this category. You can also search across every category from the search page or browse the complete A–Z index.