Pure Ts Tour -

// Arrays let fruits: string[] = ["apple", "banana"]; let numbers: Array<number> = [1, 2, 3]; // Tuples (fixed length, typed positions) let person: [string, number] = ["John", 25]; person.push("extra"); // ⚠️ allowed but avoid – TS limitation

// Literal types let direction: "north" | "south" | "east" | "west"; direction = "north"; // OK // direction = "up"; // Error pure ts tour

Add to package.json scripts:

const alice: User = id: 1, name: "Alice" ; console.log(createUser(alice)); src/features/5-union-intersection.ts // Arrays let fruits: string[] = ["apple", "banana"];

let taskStatus: Status = Status.InProgress; let numbers: Array&lt

console.log( $username, $age, active: $isActive );

function createUser(user: User): User return user;