JavaScript

Prototype. The big bro behind ES6 class.

One of the great things that ES6 brought us are classes. We need to remember though, that all the work is done by prototypes under the hood. It means that ES6 classes act just as syntactic sugar. In this article, I will walk you through the basics of the prototypes, so that you can better grasp […]

JavaScript

Defining the undefined. A try/catch trick.

Undefined is one of the reasons for confusion and can get under the skin of a developer. But what is it exactly? Definition of undefined It is a value undefined value primitive value used when a variable has not been assigned a value Undefined is a special value that lets the programmer know that a variable […]

CSS

Priority of CSS declarations. A smart way to avoid !important

Have you ever taken a minute to consider how does a css parser handles the priority of all of the css declarations? This might be just the right moment! This knowledge will help you avoid many problems along the way, such as using the css !important rule. C stands for Cascading The first step in CSS […]

JavaScript

What is “this”? Arrow functions.

If you ever programmed in another Object Oriented language, “this” keyword in JavaScript might be very confusing for you. Bear with me, I will show you some Java code.

Here, the “this” keyword is a reference to the current object, so calling

in the constructor will assign a value to the x property of an […]

JavaScript

Current state of compiling TypeScript to WebAssembly

WebAssembly (wasm) is an emerging standard – the future is coming. The support in browsers is already growing – what we still need is lowering the entry barrier for us, developers. Luckily, that is soon to be changed. I want to present you with a quick overview of something, that quite struck me – compiling […]