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

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
主站蜘蛛池模板: 苏州市| 灵宝市| 内乡县| 广宗县| 隆林| 象山县| 巴林左旗| 调兵山市| 石嘴山市| 阳春市| 阳城县| 即墨市| 靖边县| 安溪县| 泽库县| 沽源县| 东源县| 九龙坡区| 大宁县| 海南省| 吉木萨尔县| 安远县| 炎陵县| 漯河市| 盐城市| 灵武市| 兴隆县| 内丘县| 乌兰县| 巫溪县| 莒南县| 邵武市| 乐安县| 尉氏县| 中山市| 三门县| 柘荣县| 河间市| 共和县| 宁南县| 运城市|