

More important your codebase will become well structured and almost self-documenting. In reality you'll see its benefits as soon as it will catch serious and silly mistakes in your code. "What's the point of TypeScript" you'll ask. TypeScript tutorial for beginners: why TypeScript?Īt first you won't understand exactly why TypeScript makes sense, after all it gets stripped down before becoming JavaScript code. You'll see later how the TypeScript compilation is done.įor now let's keep in mind that TypeScript is a special kind of JavaScript but it needs a "translator" before running in a browser. Only after the first compilation step you're left with pure JavaScript code, ready to run in a browser.
#Best typescript editor code#
There is a JavaScript engine that reads and executes your code.īut JavaScript engines are not able to read TypeScript code so any TypeScript file should go under a "pre-translation" process, called compilation. If the idea of a compilation step confuses you keep in mind that JavaScript is already compiled and then interpreted. After a compilation all that TypeScript stuff is gone and you're left with plain, simple JavaScript. TypeScript is a layer because you can write TypeScript code in your editor. Instead to keep things simple you can think of TypeScript as of "a layer on top" of JavaScript. The definition from the official website says: "a typed superset of JavaScript" but it assumes you know what a "superset" is and what "typed" means. TypeScript tutorial for beginners: what is TypeScript?

TypeScript tutorial for beginners: TypeScript in action.TypeScript tutorial for beginners: configuring the TypeScript compiler.TypeScript tutorial for beginners: setting up TypeScript.TypeScript tutorial for beginners: why TypeScript?.TypeScript tutorial for beginners: what is TypeScript?.TypeScript tutorial for beginners: who this guide is for.
