Home > Article > Web Front-end > What is the difference between typescript and nodejs
Difference: 1. Typescript is an open source programming language developed by Microsoft and is a language; while Node.js is a JavaScript running environment. 2. Typescript is used to develop large-scale applications, while Node.js can be used as a server, middleware, and project construction tool.
The operating environment of this tutorial: windows7 system, nodejs version 12.19.0, DELL G3 computer.
Typescript and nodejs have nothing to do with each other. One is the language and the other is the operating environment. If you have to talk about the relationship, it is all related to JavaScript.
Typescript is a superset of javascript and can be compiled into javascript; node.js is the running environment of javascript.
nodeJS:
Node.js was developed by Ryan Dahl and is a JavaScript running environment based on the Chrome V8 engine
Node.js uses ECMAScript syntax specifications, plus nodejs API, both of which are indispensable
Node.js can handle and respond to http requests, process files, operate databases, etc.
Node.js can be used as a server, middleware, and project construction tool
TypeScript:
TypeScript is an open source programming language developed by Microsoft. It is built by adding static type definitions to JavaScript.
TypeScript is JavaScript A superset that supports the ECMAScript 6 standard.
extends the syntax of JavaScript so that existing JavaScript code can work with TypeScript without any modification. TypeScript provides compile-time support through type annotations. Static type checking.
TypeScript is a free and open source programming language developed by Microsoft
TypeScript is designed to develop large-scale applications. It can be compiled into pure JavaScript, The compiled JavaScript can run on any browser
[Recommended learning: "nodejs Tutorial"]
The above is the detailed content of What is the difference between typescript and nodejs. For more information, please follow other related articles on the PHP Chinese website!