Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ecmascript 5

How To Implement Javascript/ecmascript "no Lineterminator Here" Rule In Javacc?

I continue working on my JavaCC grammar for ECMAScript 5.1. It actually goes quite well, I think I&… Read more How To Implement Javascript/ecmascript "no Lineterminator Here" Rule In Javacc?

Does Javascript (ecmascript5) Strict Mode Offer Significant Performance Advantages To Merit Widespread Use?

I'm reading up a bit on using Strict Mode for JavaScript and it seems that, generally speaking,… Read more Does Javascript (ecmascript5) Strict Mode Offer Significant Performance Advantages To Merit Widespread Use?

Avoid Adding Methods And Properties To Custom Object

I'm using a base custom object extended with prototype function Person() {} Person.prototype.N… Read more Avoid Adding Methods And Properties To Custom Object

Coffeescript: Getter/setter In Object Initializers

ECMAScript allows us to define getters or setters as following: [text/javascript] var object = { … Read more Coffeescript: Getter/setter In Object Initializers

Why Ts Complains With Function Declarations Inside Function Body

I have this error from TS: It's pretty clear why the error occurs: function outer(){ if (t… Read more Why Ts Complains With Function Declarations Inside Function Body

Javascript Hoisting Var Vs Let

I'm learning some ES6 features and of course came across the let keyword and its new scope (dif… Read more Javascript Hoisting Var Vs Let

GetPathValue() Function For Deep Objects With Arrays And With Packed JSON

For background, please refer to this question: Access deep object member of embeded JSON The soluti… Read more GetPathValue() Function For Deep Objects With Arrays And With Packed JSON

ES5 | When To Use Null And When To Use Undefined

Possible Duplicate: Javascript null or undefined null is a reserved word but not a keyword. Hence … Read more ES5 | When To Use Null And When To Use Undefined