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

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

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"?

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

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

Manipulating A Complex Object Based On An Input Array

I have an complex object and based on an input array I need to modify properties inside of this com… Read more Manipulating A Complex Object Based On An Input Array

Javascript - Extend An Es6 Class In Es5

I am using the following code for a slider with Siema: https://codepen.io/pawelgrzybek/pen/boQQWy W… Read more Javascript - Extend An Es6 Class In Es5

Idea On Content Passing. Help Needed

Core Question I need help coming up with a concept to achieve my goal. I am having a problem comin… Read more Idea On Content Passing. Help Needed

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)