Название: Typescript Mini Reference: A Quick Guide to the Typescript Programming Language for Busy Coders: 4 Автор: Harry Yoon Издательство: Coding Books Press Год: 2023 Страниц: 195 Язык: английский Формат: pdf, epub (true), mobi Размер: 10.2 MB
Typescript is a better jаvascript, It is a statically typed, safe programming language, which uses more or less the same syntax as jаvascript. Typescript programs are compiled to jаvascript, and they can be run anywhere jаvascript is supported. It is widely used by professional jаvascript developers, for frontend development (e.g., Angular, React, and VueJS) as well as for backend development (e.g., Node.Js and Deno).
This book is a "mini" language reference on the Typescript programming language. We go through all essential features of Typescript (as of versions 4.8 and 4.9), and some new ECMAScript features, in this book.
Although it is written as a reference, however, you can read it more or less from beginning to end and you should be able to get the overall picture of the Typescript language if you have some prior experience with programming in Typescript or modern jаvascript (ES2015 and later).
Typescript’s marketing slogan, in the early days, used to be TypeScript is a superset of jаvascript. This phrase, when interpreted literally, does not mean very much. For one thing, a programming language is not a mathematical set, and hence one programming language cannot be a superset of another. Regardless, Typescript uses the same or similar jаvascript syntax in many parts of its grammar, including (almost) all statements and expressions.
Typescript’s extension over jаvascript is primarily limited to types. jаvascript is a dynamically and loosely typed language. It has pros and cons. For small projects, or for quick prototyping, dynamic languages like jаvascript or Python can be extremely convenient. On the other hand, when you work on bigger and longer-term projects, using statically typed languages tends to be increasingly more advantageous.
Typescript’s new slogan is TypeScript is jаvascript with syntax for types. And, it emphasizes the tooling aspect of the programming language, at any scale. Typescript is widely used with many jаvascript application frameworks such as Angular, React, and Vuejs, which are primarily intended for building large-scale jаvascript apps. In fact, Typescript got a big break, as a new language, when the Angular team adopted Typescript as their default programming language for Angular version 2.0 (and, onward). As the saying goes, the rest is history. As of this writing (January 2023), React Native, another jаvascript-based hybrid mobile app development framework, also adopted Typescript as their primary language.
The book covers:
Typescript development basics. ES module system. Basic JS/TS types. Type annotations. Variable declarations. Type inference. Algebraic data types. Generics. Objects. Classes. Function types. Arrow functions. How to create new types from existing types.
Скачать Typescript Mini Reference: A Quick Guide to the Typescript Programming Language for Busy Coders: 4
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.