Top "Ecmascript-5" questions

ECMAScript is the name of the Ecma International Standard 262.

Inconsistent scope of "use strict" on different web browsers (concerning arguments.callee and caller)

Situation: I found something strange concerning strict mode in Javascript. I am using an external, third-party Javascript library which was …

javascript ecmascript-5
How to add an method to a class in Javascript ES6

I need do add a method to a Javascript class using the new syntax. I tried this way: class X{ …

javascript class methods prototype ecmascript-5
Is there a polyfill for es6 arrow function?

Is there a polyfill for es6 arrow function? the following code throws syntax error exception in IE, is there a …

javascript jquery node.js ecmascript-6 ecmascript-5
Is there a way in Eclipse to change the ECMAScript compliance level?

In Eclipse 4.5 (Mars) with installed JavaScript Development Tools (JSDT), the default compliance level for ECMAScript is set to ECMAScript 3, which …

javascript eclipse ecmascript-6 ecmascript-5
CoffeeScript: Getter/Setter in Object Initializers

ECMAScript allows us to define getters or setters as following: [text/javascript] var object = { property: 7, get getable() { return this.property + 1; }, …

javascript oop coffeescript getter-setter ecmascript-5
Extending Object.prototype JavaScript

I am not asking if this is okay: Object.prototype.method = function(){}; This is deemed evil by pretty much everyone, …

javascript ecmascript-5
Working around IE8's broken Object.defineProperty implementation

Consider the following code, using ECMAScript5's Object.defineProperty feature: var sayHi = function(){ alert('hi'); }; var defineProperty = (typeof Object.defineProperty == …

javascript internet-explorer-8 ecmascript-5
ES5 Object.assign equivalent

I wanted to do something which is very straight-forward using Object.assign. var firstObj = {name : "Saba H.", rollNo : 1}; var secondObj = {…

javascript object ecmascript-5 ecmascript-harmony
Any performance benefit to "locking down" JavaScript objects?

JavaScript 1.8.5 (ECMAScript 5) adds some interesting methods that prevent future modifications of a passed object, with varying degrees of thoroughness: Object.…

javascript ecmascript-5 javascript-1.8
How to detect ECMAscript version?

I want to see what ECMAscript version I'm using in my browser(e.g,chrome 59) ,because there is some difference …

javascript google-chrome ecmascript-5