- 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 Cython Programming
- Testing with JUnit
- Python王者歸來
- Mastering Linux Network Administration
- Processing創(chuàng)意編程指南
- Scratch趣味編程:陪孩子像搭積木一樣學(xué)編程
- JSP程序設(shè)計(jì)與案例實(shí)戰(zhàn)(慕課版)
- 算法圖解
- Practical Maya Programming with Python
- Mastering Unreal Engine 4.X
- Flask開發(fā)Web搜索引擎入門與實(shí)戰(zhàn)
- JBoss AS 7 Development
- Raspberry Pi開發(fā)實(shí)戰(zhàn)
- C語言程序設(shè)計(jì)
- Learning Zimbra Server Essentials