- 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?
推薦閱讀
- Spring 5.0 Microservices(Second Edition)
- Java范例大全
- Node.js 10實戰
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- Java程序設計與計算思維
- HTML5游戲開發案例教程
- C++程序設計基礎教程
- 自制編程語言
- Visual C#.NET程序設計
- Java EE 8 Application Development
- 青少年信息學競賽
- 執劍而舞:用代碼創作藝術
- Learning Unreal Engine Android Game Development
- Practical Game Design with Unity and Playmaker
- Mastering Concurrency in Python