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

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
主站蜘蛛池模板: 吴旗县| 平遥县| 信丰县| 虎林市| 阳朔县| 博野县| 梅州市| 会宁县| 芮城县| 佳木斯市| 云阳县| 翁牛特旗| 浦城县| 宁津县| 广元市| 淅川县| 长沙县| 遂川县| 万载县| 连城县| 柏乡县| 澎湖县| 万全县| 定西市| 芦山县| 信阳市| 中超| 宁强县| 石首市| 同江市| 山东省| 太保市| 隆安县| 乌拉特前旗| 广饶县| 思茅市| 城口县| 门头沟区| 金川县| 平利县| 东宁县|