Skip to content

Javascript

parseInt and Radix

Everyone knows that the parseInt function within JavaScript turns your decimal number or string into a rounded integer. parseInt turns 10.937 into 10, 0.2 into 0, and “someValue” into NaN.  If you use parseInt without a radix, however, you’ll… Read More »parseInt and Radix

Node server with ES6

Today I was wondering how could I write ES6 code and run it on node so I could write my applications using always the same pattern, no matter if I’m writing Node backend code of… Read More »Node server with ES6

Merge Sort Algorithm

The Merge Sort algorithm is one of the most commonly used sorting algorithms in computer science and is also one of the most efficient. It’s based on the principle of Divide and Conquer, and this technique… Read More »Merge Sort Algorithm

JavaScript fundamentals

Javascript is the language of the web. It was born for the web and used for a long time to run small functions inside browsers. We used to create JS scripts to animate stuff, or validade forms but those days are over. Javascript evolved into a full language capable of loading data from servers and manipulating the DOM in such way that made possible for full frameworks to appear. Now we have a full ecosystem of JS. It runs on the server side, on the client side and even on Mobile devices and Apps for desktops.

In this article I want to give you a brief overview of the Javascript fundamentals so you can begin to understand how it works and what you can do with it. Hope you guys enjoy!

Data Types

Even though Javascript is not a strictly typed language, it has types. We are gonna talk about the types later, first we need to clarify one thing.

Javascript has primitives, objects and functions. All of them are values. All are treated as objects, even primitives.

Read More »JavaScript fundamentals

Immutability in JavaScript

Immutability is a super hot subject in modern JavaScript and the reason for that is, of course, because of the functional programming paradigm.

Immutable data is tightly connected with a functional approach where any mutation is considered as an unwanted side effect. But first, let’s dive into details of mutability and immutability.

Read More »Immutability in JavaScript