Category Archives: JavaScript Coding Techniques

TypeScript is actually JavaScript and one still has to be careful

TypeScript, although very promising language, does not solve fundamental JavaScript’s issue (feature?) with “this” property binding. TypeScript can lead to unfortunate errors since it is heavily used by people coming from C#/Java communities, who bring coding patterns with them. Let’s have a look at code example from TypeScript playground:

Now, lets make slight change… Read More »

Exporting a variable from JavaScript module

From time to time I do the same error when trying to export some variable from whatever kind of JavaScript module:

Having 13 years of coding experience does not save me from the moment of confusion here :-). If you are also confused, then continue reading. So, why the result is “Alexander” again? The… Read More »