- 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
推薦閱讀
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- 復雜軟件設計之道:領域驅動設計全面解析與實戰
- ThinkPHP 5實戰
- Visual Basic程序設計(第3版):學習指導與練習
- Mastering Python High Performance
- Python數據挖掘與機器學習實戰
- 學習OpenCV 4:基于Python的算法實戰
- Visual Basic程序設計上機實驗教程
- Programming Microsoft Dynamics? NAV 2015
- 區塊鏈架構之美:從比特幣、以太坊、超級賬本看區塊鏈架構設計
- Android Studio Cookbook
- Django Design Patterns and Best Practices
- 深入分析GCC
- Java 9 with JShell
- XML程序設計(第二版)