- Learn React with TypeScript 3
- Carl Rippon
- 137字
- 2021-06-10 19:16:40
Questions
Here are some questions to test what you have learned in this first chapter. The answers can be found in the appendix.
Good luck!
- What are the 5 primitive types?
- What would the inferred type be for the flag variable be in the following code?
const flag = false;
- What's the difference between an interface and a type alias?
- What is wrong with the following code? How could this be resolved?
class Product {
constructor(public name: string, public unitPrice: number) {}
}
let table = new Product();
table.name = "Table";
table.unitPrice = 700;
- If we want our TypeScript program to support IE11, what should the compiler--target option be?
- Is it possible to get the TypeScript compiler to transpile ES6 .js files? If so, how?
- How can we prevent console.log() statements from getting into our code?
推薦閱讀
- MySQL數(shù)據(jù)庫管理實戰(zhàn)
- Kali Linux Web Penetration Testing Cookbook
- Redis Applied Design Patterns
- Python語言程序設計
- Python爬蟲開發(fā)與項目實戰(zhàn)
- Scratch 3.0少兒編程與邏輯思維訓練
- Selenium Testing Tools Cookbook(Second Edition)
- Node.js:來一打 C++ 擴展
- Learning Apache Karaf
- 零代碼實戰(zhàn):企業(yè)級應用搭建與案例詳解
- 深入理解BootLoader
- 你好!Java
- 系統(tǒng)分析師UML用例實戰(zhàn)
- Java核心技術速學版(第3版)
- HTML5+jQuery Mobile移動應用開發(fā)