console.log("======1 數(shù)字===========")
let num:number = 0.5
console.log(num)
console.log("\n======2 變量===========")
let str : string = "AA"
console.log(str)
console.log(num + str)
console.log("\n======3 替換符===========")
let statu = User is ${str}
console.log(statu)
console.log("\n======4 數(shù)組===========")
let arr:number[] = [1 , 2]
console.log(arr[0])
console.log(arr.length)
console.log("\n======5 元組 Tuple===========")
let xx :[ string , number]
xx = ["TT" , 77]
console.log(xx[0])
console.log(xx[1])
console.log("\n======6 枚舉===========")
enum Color { R , B , G }
let c : Color = Color.R
console.log(c)
console.log(Color[1])
console.log("\n======7 任意值===========")
let notSure : any = 4 ;
console.log(notSure)
notSure = "AA"
console.log(notSure)
notSure = false
console.log(notSure)