Due to the fact that objects are reference values in JavaScript, copying them is not as easy as just assigning to another variable. There are a lot of different ways to copy an object. Choosing the right method depends on what would you like to achieve...Read more
Spread operator is used to access all elements inside of an iterable. Don't worry if the definition is not clear, we'll explain the operator in detail...Read more
Destructuring assignment is a special syntax that allows us to retrieve pieces of arrays or objects and assign them to separate variables. This approach can be used for...Read more
Template literals are string literals that allow embedding an expression. It is possible to use string interpolation and multi-line string features with them. In JavaScript, there are 3 ways of defining a string...Read more
These keywords act as a syntactic sugar built on top of Promises, making asynchronous code look and feel like synchronous, therefore easier to produce and maintain. Async function - it is a function, declared using...Read more
Promise - it is an object that produces some value in the future. This object represents the result of an asynchronous operation. Promise has 3 states...Read more
What if we don't only need to check if the given string contains the specific pattern, but get the part of a match? You can easily do so by using so-called capturing groups...Read more
Regular expression is a sequence of characters that define a search pattern that is used to find occurrences in text and/or replace them. There are 2 ways of defining regex in JavaScript...Read more
In this article, we are going to explore all built-in array methods that are available for use by default. We'll start with the most used ones...Read more