JavaScript was introduced as a language for the client-side. the development of Node.js has marked JavaScript as Associate in Nursing rising server-side technology too. However, as JavaScript code grows, it tends to urge messier, creating it troublesome to keep up and recycle the code. Moreover, its failure to embrace the options of Object Orientation, sturdy sort checking and compile-time error checks forestall JavaScript from succeeding at the enterprise level as a full-fledged server-side technology. The typescript was conferred to bridge this gap.
What is TypeScript?
By definition, “TypeScript is JavaScript for application-scale development.”
TypeScript may be a powerfully written, object-oriented, compiled language. it had been designed by Anders Hejlsberg (designer of C#) at Microsoft. typescript is each language and a group of tools. typescript may be a written superset of JavaScript compiled to JavaScript. In different words, typescript is JavaScript and some further features.
Features of typescript
TypeScript is simply JavaScript. typescript starts with JavaScript and ends with JavaScript. typescript adopts the fundamental building blocks of your program from JavaScript. Hence, you simply need to recognize JavaScript to use typescript. All typescript code is regenerate into its JavaScript equivalent for the aim of execution.
TypeScript supports different JS libraries. Compiled typescript will be consumed from any JavaScript code. TypeScript-generated JavaScript will reuse all of the prevailing JavaScript frameworks, tools, and libraries.
JavaScript is a typescript. this implies that any valid .js file will be renamed to .ts and compiled with different typescript files.
TypeScript is moveable. typescript is portable across browsers, devices, and operating systems. It will run on any surroundings that JavaScript runs on. not like its counterparts, typescript doesn’t want a fanatical VM or a particular runtime environment to execute.
If you want to learn more? Then click here and Visit Main Site.
Comments
Post a Comment