Coercion is JavaScript

Coercion is the phenomenon that implicitly converts a value from one primitive type to another. Many times we need to convert a particular data type to another data type. If you have programmed in C/C++ or Java, you are more likely to encounter type casting where you have to convert a variable from one type […]

Hoisting is JavaScript

Today, we’re going to take a look at the phenomenon that happens in JavaScript that many people find surprising and perhaps a bit confusing. It’s called Hoisting” in JavaScript. In this article, we are going to take a look at JavaScript Hoisting and how it actually works. So, Let’s take a look at the code […]