JavaScript Date and time

2021 VietMX 0

Let’s meet a new built-in object: Date. It stores the date, time and provides methods for date/time management. For instance, we can use it to store […]

JavaScript Map and Set

2021 VietMX 0

Till now, we’ve learned about the following complex data structures: Objects are used for storing keyed collections. Arrays are used for storing ordered collections. But […]

JavaScript Iterables

2021 VietMX 1

Iterable objects are a generalization of arrays. That’s a concept that allows us to make any object useable in a for..of loop. Of course, Arrays are iterable. But […]

JavaScript Arrays

2021 VietMX 0

Objects allow you to store keyed collections of values. That’s fine. But quite often we find that we need an ordered collection, where we have a […]

JavaScript Strings

2021 VietMX 1

In JavaScript, the textual data is stored as strings. There is no separate type for a single character. The internal format for strings is always UTF-16, […]

JavaScript Numbers

2021 VietMX 0

In modern JavaScript, there are two types of numbers: Regular numbers in JavaScript are stored in 64-bit format IEEE-754, also known as “double precision floating point […]

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 […]