Skip to content

Instantly share code, notes, and snippets.

View sachinkmohan's full-sized avatar
🎯
Focusing

Sachin Mohan sachinkmohan

🎯
Focusing
View GitHub Profile
@sachinkmohan
sachinkmohan / typescript-crash.ts
Created July 6, 2024 16:35 — forked from bradtraversy/typescript-crash.ts
Basic intro to TypeScript (From YouTube Crash Course)
// Basic Types
let id: number = 5
let company: string = 'Traversy Media'
let isPublished: boolean = true
let x: any = 'Hello'
let ids: number[] = [1, 2, 3, 4, 5]
let arr: any[] = [1, true, 'Hello']
// Tuple