- Learn React with TypeScript 3
- Carl Rippon
- 77字
- 2021-06-10 19:16:32
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
推薦閱讀
- Extending Jenkins
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發經典名著)
- Visual FoxPro程序設計教程
- Java開發入行真功夫
- HTML5游戲開發案例教程
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- JavaScript 程序設計案例教程
- 響應式Web設計:HTML5和CSS3實戰(第2版)
- Hands-On Robotics Programming with C++
- 百萬在線:大型游戲服務端開發
- Java Web動態網站開發(第2版·微課版)
- PHP從入門到精通(第7版)
- Python Geospatial Analysis Cookbook
- C#.NET程序設計
- Flask Framework Cookbook