This article will show and guide you to choose the functions and operators when checking if a variable is an array or object.
Category Archive: JavaScript
Introduction
Functions are vital to any programming language. The concept of isolating and/or organizing small pieces of code into subroutines have many uses and values. Thereby, it has helped us structure medium to large programs, to reduce repetition, and modularize programs and/or subprograms from each other.
Introduction
After ES6 was released, I have seen that many developers are still unaware of the recently added functions of the Array
object. Thereby, I decided to create this article to spread the information and hoping that many would benefit from it.
Introduction
If you have been grasping or done grasping on JavaScript iterators and searching on JavaScript generators, you are at the right place. In this article, we will take a look at JavaScript generators and how they are different from iterators. Moreover; will go in-depth with its methods and see some tips when using function generators on an arrow function and inside an object.
Introduction
In my perspective, it is crucial to understand the types of a certain programming language because it is the building block. That’s why in this article, will see the builtin types of JavaScript and the difference between primitive and reference types.
Introduction
If you are familiar with other languages such as C#, Java, or C++, JavaScript’s map data-structure is similar to a dictionary (dictionary is the equivalent of JavaScript Map
in other programming languages). Knowing the concepts of key/value pair data structures in other languages will help you instantly to grasp the basic concepts here. However, if you haven’t touched any of these languages it won’t hurt because will still start from the basics.
Lastly, if you are one of those developers who remain comfortable with objects-as-maps and decided to see if the JavaScript Map
can save your day. You are in the right place.
Introduction
Are you currently learning the JavaScript language and within the subject area of loops, iteration, and arrays? Plus you stumbled upon with these two methods Array.forEach()
and Array.map()
. Finally, confused? No worries, because in this post, we are going to answer the difference in these two methods.