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

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
主站蜘蛛池模板: 泗洪县| 玛曲县| 阳原县| 麻江县| 互助| 乌拉特中旗| 沛县| 象州县| 唐山市| 怀远县| 株洲市| 商水县| 远安县| 浦北县| 临颍县| 建瓯市| 遵化市| 木里| 杂多县| 澄迈县| 宝清县| 罗田县| 勃利县| 天津市| 平罗县| 虞城县| 永宁县| 汉寿县| 迁西县| 临朐县| 北流市| 前郭尔| 柘荣县| 中方县| 张家口市| 梅州市| 江都市| 会理县| 宣化县| 铁岭市| 舞钢市|