- TypeScript Essentials
- Christopher Nance
- 166字
- 2021-08-05 17:43:26
Chapter 2. TypeScript Basics
One of the primary benefits of compiled languages is that they provide a more plain syntax for the developer to work with before the code is eventually converted to machine code. TypeScript is able to bring this advantage to JavaScript development by wrapping several different patterns into language constructs that allow us to write better code. We have talked a little bit about the static type system that TypeScript adds on top of JavaScript. Every explicit type annotation that is provided is simply syntactic sugar that will be removed during compilation, but not before their constraints are analyzed and any errors are caught. In this chapter, we will explore this type system in depth. We will also discuss the different language structures that TypeScript introduces. We will look at how these structures are emitted by the compiler into plain JavaScript. This chapter will contain a detailed look at each of these concepts:
- Types
- Functions
- Interfaces
- Classes
- Enums
- Modules
- Generic types
- TypeScript Essentials
- Boost C++ Application Development Cookbook(Second Edition)
- Python數(shù)據(jù)分析基礎(chǔ)
- 機器人Python青少年編程開發(fā)實例
- 秒懂設(shè)計模式
- Building a Quadcopter with Arduino
- Visual C#.NET程序設(shè)計
- 編程數(shù)學
- R語言與網(wǎng)絡(luò)輿情處理
- Getting Started with React Native
- 基于SpringBoot實現(xiàn):Java分布式中間件開發(fā)入門與實戰(zhàn)
- Access 2010中文版項目教程
- Unity 3D腳本編程:使用C#語言開發(fā)跨平臺游戲
- 計算機應(yīng)用技能實訓教程
- Python Programming for Arduino