- 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?
推薦閱讀
- 案例式C語言程序設計
- Redis Applied Design Patterns
- PyTorch自動駕駛視覺感知算法實戰
- SQL Server 2016從入門到精通(視頻教學超值版)
- Designing Hyper-V Solutions
- Data Analysis with Stata
- Securing WebLogic Server 12c
- Java 11 Cookbook
- Building Serverless Applications with Python
- Web Development with MongoDB and Node(Third Edition)
- 51單片機C語言開發教程
- Swift 4 Protocol-Oriented Programming(Third Edition)
- 從0到1:HTML5 Canvas動畫開發
- Arduino機器人系統設計及開發
- 基于GPU加速的計算機視覺編程:使用OpenCV和CUDA實時處理復雜圖像數據