Tuples & Enums
Tuples in TypeScript
A tuple is a special type of array that has a fixed length and specific types for each element.
→ Declaring a Tuple
let user: [string, number] = ["Alice", 25];
console.log(user[0]); // Output: Alice
console.log(user[1]); // Outpu...
intro-to-nodejs.hashnode.dev3 min read