- 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
推薦閱讀
- Python語言程序設計
- Java虛擬機字節碼:從入門到實戰
- QGIS:Becoming a GIS Power User
- 用Python實現深度學習框架
- 青少年Python編程入門
- MATLAB 2020從入門到精通
- UX Design for Mobile
- Android移動應用項目化教程
- Java自然語言處理(原書第2版)
- Monitoring Docker
- C# 7 and .NET Core 2.0 Blueprints
- TypeScript High Performance
- Java程序性能優化實戰
- Building E-Commerce Solutions with WooCommerce(Second Edition)
- C++標準庫(第2版)