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

Weird Output Of [97,98].map(string.fromcharcode)

this works as expected [97,98].map(function(x){String.fromCharCode(x)}) // [ 'a', 'b… Read more Weird Output Of [97,98].map(string.fromcharcode)

Assign New Property To Empty Object Which Has Frozen Prototype

Why can't I assign new properties to non-frozen object, which has frozen prototype: Working wit… Read more Assign New Property To Empty Object Which Has Frozen Prototype

In Ecmascript5, What's The Scope Of "use Strict"?

What scope does the strict mode pragma have in ECMAScript5? 'use strict'; I'd like to … Read more In Ecmascript5, What's The Scope Of "use Strict"?

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?

How To Understand Js Realms

In ECMAScript specification there is notion of 'realms' introduced: Before it is evaluated… Read more How To Understand Js Realms

Javascript Defineproperty To Make An Attribute Non Enumerable

I'm trying to use defineProperty to made attributes not appear in for...in cycle, but it doesn&… Read more Javascript Defineproperty To Make An Attribute Non Enumerable