- Learning Ionic(Second Edition)
- Arvind Ravulavaru
- 56字
- 2021-07-02 23:24:24
Variable typing
In vanilla JavaScript, we would do something like this:
x = 20;
// after a few meaningful minutes
x = 'nah! It's not a number any more';
But in TypeScript, we cannot do as shown in the preceding code snippet, the TypeScript compiler would complain as we are modifying the variable type at runtime.
推薦閱讀
- Getting started with Google Guava
- Moodle Administration Essentials
- MySQL 8從入門到精通(視頻教學版)
- 深入淺出Prometheus:原理、應用、源碼與拓展詳解
- Java虛擬機字節碼:從入門到實戰
- Learn Programming in Python with Cody Jackson
- Amazon S3 Cookbook
- 零基礎入門學習Python
- 焊接機器人系統操作、編程與維護
- Learning Probabilistic Graphical Models in R
- Webpack實戰:入門、進階與調優
- Arduino可穿戴設備開發
- 后臺開發:核心技術與應用實踐
- Java Hibernate Cookbook
- Visual C++從入門到精通(第2版)