Skip to content

Instantly share code, notes, and snippets.

View sajith-silverlineit's full-sized avatar
🏠
Working from home

Sajith Nishantha De Silva sajith-silverlineit

🏠
Working from home
  • SilverlineIT
View GitHub Profile
@sajith-silverlineit
sajith-silverlineit / typescript-crash.ts
Created October 24, 2023 14:45 — 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