TS 타입 종류
·
TS
// 타입 종류 // 문자 let str: string; let red: string = "Red"; let green: string = "Green"; let myColot: string = `My color is ${red}`; let yourColor: string = "Your color is" + green; // 숫자 let num: number; let integer: number = 6; let float: number = 3.14; let infinity: number = Infinity; let nan: number = NaN; // 불린 let isBoolean: boolean; let isDone: boolean = false; // Null / Undefined let nul: n..