Автор: Max Beerbohm, Moaml Mohmmed
Издательство: Amazon Digital Services LLC
Год: 2019
Страниц: 121
Язык: английский
Формат: epub, rtf, pdf (conv)
Размер: 10.1 MB
TypeScript is a programming language designed for large-scale jаvascript application development, it has been designed as a typed superset of jаvascript. This means we’ve actually been writing TypeScript this whole time!
This language allow us to use features from the most recent ECMAScript versions and even some features that are not even in the scope of the standard. This is because when compiled, it produces jаvascript in a cross-platform safe version. TypeScript, currently in the version 2.5, adds features like optional static typing, classes, interfaces, modules, and many others. All of this allow us to use jаvascript from the future right now!
TypeScript needs something that transforms its syntax into standard jаvascript, this is called the transpiler, a type of compiler that takes the source code in a programming language as the input, and transforms it into another programming language. TypeScript files have the .ts extension, and the transpiler produces the well known .js files.
TypeScript also allows the use of common jаvascript libraries and frameworks, by providing an easy integration with declaration files. TypeScript is referred to as a superset of jаvascript and is compiled. This means that jаvascript-type programs are also valid TypeScript programs, and because they are translated into standard jаvascript, TypeScript programs can be written, translated, and run anywhere that accepts jаvascript, such as the browser, Node.js, or any engine that supports ECMAScript version 3 or higher of jаvascript.
Скачать TypeScript: The Complete Beginner’s Guide to TypeScript