Typescript variables

From wikinotes
Revision as of 03:08, 11 December 2022 by Will (talk | contribs) (→‎Assignment)

Assignment

let name: string = "alex"; // type annotation
let name = "alex";         // inferred type 'string'

Scope