- 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.
推薦閱讀
- TestNG Beginner's Guide
- 數據結構習題精解(C語言實現+微課視頻)
- Python數據分析(第2版)
- 零基礎學Java程序設計
- Modern JavaScript Applications
- WebRTC技術詳解:從0到1構建多人視頻會議系統
- SQL基礎教程(第2版)
- Mobile Device Exploitation Cookbook
- Java程序設計案例教程
- JavaScript應用開發實踐指南
- Getting Started with Python
- PyQt編程快速上手
- 黑莓(BlackBerry)開發從入門到精通
- Learning Image Processing with OpenCV
- Learning ECMAScript 6