DEV Community

Sudhakar V
Sudhakar V

Posted on

✅ ES5 = ECMAScript 5

📘 What is ECMAScript?

ECMAScript is the standard specification on which JavaScript is based. It is developed by ECMA International, and the goal is to standardize the language.


📆 ECMAScript 5 (ES5) Details:

Feature Description
Full Name ECMAScript 5 (5th Edition)
Released Year December 2009
Standard Number ECMA-262, 5th Edition
Main Goal Add new features, improve security, and better language support

🚀 Key Features Introduced in ES5:

  • use strict mode
  • Array methods: forEach(), map(), filter(), reduce()
  • Object.defineProperty()
  • JSON.parse() and JSON.stringify()
  • Better property access control
  • Safer coding practices

✅ Example:


javascript
"use strict";  // ES5 feature

var nums = [1, 2, 3];
var doubled = nums.map(function(n) {
  return n * 2;
});
console.log(doubled);  // [2, 4, 6]

Enter fullscreen mode Exit fullscreen mode

Top comments (0)