- 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.
推薦閱讀
- Learning Java Functional Programming
- Visual C++程序設計教程
- 實用防銹油配方與制備200例
- Scratch真好玩:教小孩學編程
- Microsoft System Center Orchestrator 2012 R2 Essentials
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- 青少年信息學競賽
- 好好學Java:從零基礎到項目實戰
- ActionScript 3.0從入門到精通(視頻實戰版)
- 石墨烯改性塑料
- C#面向對象程序設計(第2版)
- Instant Automapper
- 交互設計師成長手冊:從零開始學交互
- Java程序設計實用教程(第2版)
- Mastering Python