JavaScript Garbage collection

2021 VietMX 0

Memory management in JavaScript is performed automatically and invisibly to us. We create primitives, objects, functions… All that takes memory. What happens when something is […]

JavaScript Objects

2021 VietMX 0

As we know from the chapter Data types, there are eight data types in JavaScript. Seven of them are called “primitive”, because their values contain only […]

JavaScript Ninja code

2021 VietMX 0

Learning without thought is labor lost; thought without learning is perilous. Programmer ninjas of the past used these tricks to sharpen the mind of code […]

JavaScript Comments

2021 VietMX 0

As we know from the chapter Code structure, comments can be single-line: starting with // and multiline: /* … */. We normally use them to describe how and why […]

JavaScript specials

2021 VietMX 0

This chapter briefly recaps the features of JavaScript that we’ve learned by now, paying special attention to subtle moments. 1. Code structure Statements are delimited […]

JavaScript Functions

2021 VietMX 0

Quite often we need to perform a similar action in many places of the script. For example, we need to show a nice-looking message when […]

JavaScript Logical operators

2021 VietMX 1

There are four logical operators in JavaScript: || (OR), && (AND), ! (NOT), ?? (Nullish Coalescing). Here we cover the first three, the ?? operator is in the next article. Although they are called “logical”, […]