官术网_书友最值得收藏!

Primitive types

Before understanding how we declare variables and functions with types in TypeScript, let's briefly look at primitive types, which are the most basic types. Primitive types are simple values that have no properties. TypeScript shares the following primitive types with JavaScript:

  • string: Represents a sequence of Unicode characters
  • number: Represents both integers and floating-point numbers
  • boolean: Represents a logical true or false
  • undefined: Represents a value that hasn't been initialized yet
  • null: Represents no value
主站蜘蛛池模板: 高陵县| 宝山区| 邹城市| 宣恩县| 鲁山县| 汉川市| 雷州市| 府谷县| 岑巩县| 内江市| 广水市| 基隆市| 陆丰市| 保定市| 思茅市| 衡东县| 鸡西市| 阿克苏市| 宜川县| 砀山县| 华亭县| 绥阳县| 青浦区| 邵东县| 报价| 南丹县| 称多县| 邢台市| 蓬安县| 连云港市| 元朗区| 通州区| 深州市| 嘉兴市| 横峰县| 广汉市| 芮城县| 新沂市| 哈尔滨市| 临清市| 枣庄市|