Tutorials References Menu

What is ES5?


HTML

ES5 is a shortcut for ECMAScript 5

ECMAScript 5 is also known as JavaScript 5

ECMAScript 5 is also known as ECMAScript 2009


ECMAScript 5

ECMAScript 5 was released in 2009.


ECMAScript 5 Features

These were the new features released in 2009:

  • The "use strict" Directive
  • String.trim()
  • Array.isArray()
  • Array.forEach()
  • Array.map()
  • Array.filter()
  • Array.reduce()
  • Array.reduceRight()
  • Array.every()
  • Array.some()
  • Array.indexOf()
  • Array.lastIndexOf()
  • JSON.parse()
  • JSON.stringify()
  • Date.now()
  • Property Getters and Setters
  • New Object Property Methods

ECMAScript 5 Syntactical Changes

  • Property access [ ] on strings
  • Trailing commas in array and object literals
  • Multiline string literals
  • Reserved words as property names

Browser Support for ES5 (2009)

Chrome 23, IE 10, and Safari 6 were the first browsers to fully support ECMAScript 5:

Chrome 23 IE10 / Edge Firefox 21 Safari 6 Opera 15
Sep 2012 Sep 2012 Apr 2013 Jul 2012 Jul 2013

Internet Explorer 9 (March 2011) supports ES 5 except for "use strict".


Full ECMAScript 5 Tutorial

This has been a short introduction to ECMAScript 5.

For a full overview go to W3Schools JavaScript ES5 Tutorial.

For a full overview of JavaScript versions go to JavaScript Versions.