Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

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.


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.