type annotations
TypeScriptbeginnercode
const name: string = "Alice";
const age: number = 30;
const active: boolean = true;
const tags: string[] = ["admin"];
const meta: Record<string, unknown> = { version: 1 };
Click to start typing
We use cookies for authentication (required), preferences, analytics and marketing. See our Cookie Policy.