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

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
主站蜘蛛池模板: 青铜峡市| 安国市| 当涂县| 巴塘县| 巨野县| 莲花县| 轮台县| 盐亭县| 赣州市| 新和县| 诏安县| 九龙县| 准格尔旗| 大理市| 稷山县| 东源县| 左云县| 克什克腾旗| 布尔津县| 天等县| 和田市| 丰顺县| 铜川市| 烟台市| 灌南县| 平阳县| 玉溪市| 信丰县| 天台县| 靖宇县| 屏山县| 浮梁县| 阜康市| 涟水县| 北流市| 瑞昌市| 桃江县| 岐山县| 乌拉特前旗| 汉寿县| 石家庄市|