“This is the 25th day of my participation in the Gwen Challenge in November. See details: The Last Gwen Challenge in 2021”

🌊 author’s home page: Hai Yong🌊 Author profile: πŸ†CSDN full stack quality creator, πŸ₯‡HDZ core group member 🌊 Fan benefits: fans send six books every week and various small gifts from time to time

What is JavaScript?

JavaScript, also known as JS, is a programming language that conforms to the ECMAScript specification. This is a high-level, often just-in-time compiled, multi-paradigm.

Vanilla JavaScript is a name used to refer to the use of ordinary JavaScript without the need for any other libraries.

What does JavaScript do?

JS is a widely used programming language used on both the client and server sides to make web pages interactive.

JavaScript can be used for:

  1. Add interactive behavior to web pages.
  2. Create Web and mobile applications.
  3. Build the Web server and develop the server application.
  4. The game development

What is TypeScript?

TypeScript is a strongly typed, object-oriented compilation language. TypeScript, also known as TS, is a superset of JavaScript(JS) that follows JavaScript. In short, TS is JS with more extras.

What are the features of TypeScript?

  1. TypeScript is just JavaScript. You only need to know JS to use TS. This is because all of your TypeScript code is converted to JavaScript for execution.
  2. TypeScript supports other JS libraries; As a result, TypeScript generates JS that can reuse all existing JavaScript frameworks, tools, and libraries.
  3. JS files are TS files. This just means that any valid.js file can * be renamed.ts and compatible with other TS files.
  4. TypeScript is portable. TS can run in any environment running JS, it can run across browsers, devices, operating systems, etc…… TypeScript does not require a dedicated VM or a specific runtime environment to execute.

What is TypeScript used for compared to JavaScript?

TypeScript’s advantages over JavaScript include:

  1. Support for classes and modules.
  2. Static type checking
  3. ES6 functions supported
  4. Clear library API definitions.
  5. Built-in support for JavaScript packaging.
  6. A superset of JavaScript

Should we start using TypeScript?

Because TypeScript is an object-oriented language, it makes code more reusable, simple, clean, and consistent. So it’s better to use TypeScript to build a huge project. But Vanilla JavaScript can be used on smaller coding projects for better practice.

The author is determined to build a fishing site with 100 small games, update progress: 41/100

I’ve been writing tech blogs for a long time, mostly via nuggets, and this is my piece on how JavaScript and TypeScript really relate. I like to share technology and happiness through articles. You can visit my blog at juejin.cn/user/204034… For more information. Hope you like it! 😊

πŸ’Œ welcomes your comments and suggestions in the comments section! πŸ’Œ