- 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.
推薦閱讀
- Mastering Entity Framework Core 2.0
- 企業級Java EE架構設計精深實踐
- The Modern C++ Challenge
- Learning Apache Kafka(Second Edition)
- 數據結構習題解析與實驗指導
- Android開發案例教程與項目實戰(在線實驗+在線自測)
- SQL Server與JSP動態網站開發
- C++編程兵書
- 深入解析Java編譯器:源碼剖析與實例詳解
- 現代C:概念剖析和編程實踐
- Backbone.js Testing
- The Statistics and Calculus with Python Workshop
- INSTANT JQuery Flot Visual Data Analysis
- Java EE架構設計與開發實踐
- Mastering Data Analysis with R