Skip to content

Instantly share code, notes, and snippets.

View Stazyu's full-sized avatar
🏠
Working from home

Wahyu Hidayatulloh Pamungkas Stazyu

🏠
Working from home
View GitHub Profile
@Stazyu
Stazyu / typescript-crash.ts
Created June 23, 2022 04:30 — 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