DEV Community

Arthur
Arthur

Posted on

JavaScript Versions

ES5 is an older version of JavaScript.

It is a standard that defines how JavaScript works.


ES2015

ES2015 is a newer version that improved ES5.

It added new features and made code easier to write and read.


TypeScript

TypeScript is a version of JavaScript with extra features.

It adds type checking to help avoid mistakes.

TypeScript code is converted into normal JavaScript so browsers can understand it.


Transpiler

A transpiler is a tool that converts new code into older JavaScript.

This is needed because not all browsers support the newest features.

Examples:

  • Babel is a popular transpiler
  • TypeScript also works as a transpiler

Simple Idea

  • ES5 is old JavaScript
  • ES2015 is improved JavaScript
  • TypeScript is safer JavaScript
  • Transpiler converts modern code into browser-compatible code

Top comments (0)