- Learning Ionic(Second Edition)
- Arvind Ravulavaru
- 50字
- 2021-07-02 23:24:24
Defining types
When we declare variables, we can optionally declare the types of variables. For instance:
name: string = 'Arvind';
age: number = 99;
isAlive: boolean = true;
hobbies: string[];
anyType: any;
noType = 50;
noType = 'Random String';
This increases the predictability of what we are trying to do.
推薦閱讀
- Instant Node Package Manager
- 軟件安全技術
- Data Visualization with D3 4.x Cookbook(Second Edition)
- JavaScript前端開發模塊化教程
- 自然語言處理實戰:預訓練模型應用及其產品化
- Game Programming Using Qt Beginner's Guide
- Building a Game with Unity and Blender
- Selenium Design Patterns and Best Practices
- Mastering ServiceNow(Second Edition)
- Python Data Structures and Algorithms
- Java Web開發就該這樣學
- Odoo 10 Implementation Cookbook
- 軟件測試綜合技術
- PhoneGap 4 Mobile Application Development Cookbook
- LabVIEW數據采集