ebook img

Typescript Mini Reference: A Quick Guide to the Typescript Programming Language for Busy Coders: 4 PDF

02023·2.331 MB·
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Typescript Mini Reference: A Quick Guide to the Typescript Programming Language for Busy Coders: 4

Description:
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.
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.