Home  >  Article  >  Web Front-end  >  How many versions of javascript are there?

How many versions of javascript are there?

PHPz
PHPzOriginal
2023-04-24 10:48:121439browse

JavaScript is a programming language used to add interactivity and dynamic effects to web pages. Since its inception, JavaScript has evolved and developed into many versions. In this article, we will discuss JavaScript versions and their important changes.

  1. JavaScript 1.0
    The original JavaScript was created in 1995 by Brendan Eich of Netscape. With the merger of Mocha and LiveScript, JavaScript 1.0 was born. It was the first version of JavaScript to be widely used in browsers. Although it is a very basic version, it lays the foundation for subsequent versions.
  2. JavaScript 1.1
    JavaScript 1.1 was released in 1996 and is an extended version of JavaScript 1.0. It adds support for regular expressions, for/in loops, toSource() method, and custom exceptions. Although JavaScript 1.1 was not supported by all browsers, it provided more options for web developers at the time.
  3. JavaScript 1.2
    JavaScript 1.2 was released in 1997. This version of JavaScript introduced many features that are still widely used today, such as Array.sort(), Object.defineProperty(), and Function.bind() . It also supports new data types such as RegExp and Boolean.
  4. JavaScript 1.3
    JavaScript 1.3 was released in 1998 and was a major improvement to JavaScript. JavaScript 1.3 introduces a new object model, including enhancements to regular expressions, Date objects, and exceptions, and provides the browser with better scripting control.
  5. JavaScript 1.4
    JavaScript 1.4 was released in 1999, which is a powerful extension to JavaScript. It contains a series of new methods and functions, such as RegExp.exec(), String.charAt() and window.captureEvents(). It also considers it from a security perspective by providing the ability to restrict script permissions to enhance security.
  6. JavaScript 1.5
    JavaScript 1.5 was released in 2000. It brought many changes, including exception handling, full support for features already in JavaScript 1.2 and 1.3 versions, enhanced error handling mechanisms, and more.
  7. JavaScript 1.6
    JavaScript 1.6 was released in 2005 and brought new features and properties based on XML and XHTML, as well as improvements to array handling and error handling. This version also supports JSON, a powerful way to make JavaScript a cross-platform and cross-language communication.
  8. JavaScript 1.7
    JavaScript 1.7 was released in 2006, bringing more advanced features such as iterators and generators. This version provides the browser with more control and enhanced exception handling and debugging capabilities.
  9. JavaScript 1.8
    JavaScript 1.8 was released in 2008, which brought a JIT compiler, as well as support for multi-threaded programming and private properties. At the same time, this version also brings new features such as a rich variable parser and functional control flow structure.
  10. ECMAScript 5
    ECMAScript 5 was released in 2009. It is a basic standard for JavaScript. Important updates were introduced in this version, such as strict mode (strict mode), standardization of JSON objects, and some Enhancements and optimizations to methods and functions.
  11. ECMAScript 6 / ECMAScript 2015
    ECMAScript 6 was released in 2015 and it was another major update to JavaScript. This version introduces new features such as classes, modularity, arrow functions, default parameters, destructuring, and generators. However, ECMAScript 6 is not backwards compatible with earlier versions of JavaScript, so upgrading or using a preprocessor may be necessary.
  12. ECMAScript 2016 / ECMAScript 7
    ECMAScript 2016 was released in 2016 and brought many new language features, such as Array.includes(), power operator, default reset parameters, async/await, etc. wait.
  13. ECMAScript 2017 / ECMAScript 8
    ECMAScript 2017 was released in 2017 and brought new features to JavaScript such as async functions, Object.values() and Object.entries() methods. Additionally, it introduces a new standard library including SharedArrayBuffer, Atomics, and data structures.
  14. ECMAScript 2018 / ECMAScript 9
    ECMAScript 2018 was released in 2018. It brings many important features to the language, such as asynchronous iteration, Rest/Spread attributes, Promise.finally(), regular expression naming Group capture and more.

Summary:
The version of JavaScript has gone through many improvements and evolutions, from the original JavaScript 1.0 to the current ECMAScript 2018. It continues to develop and improve, bringing better things to web developers. functions and experience. The changes in JavaScript version not only make it a powerful programming language, but also bring many convenient and easy-to-use features. For current developers, understanding different versions of JavaScript is very necessary.

The above is the detailed content of How many versions of javascript are there?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn