Himanshu Kumarhimanshukrmr.hashnode.dev·Apr 9, 2023Understanding “==” (Abstract Equality) and “===” (Strict Equality) in JavaScriptA lot of people including me had a misconception that in JavaScript “==” doesn’t check type and “===” does, but sometimes we have to unlearn some things. So before understanding these two equalities we have to understand Coercion. What is Coercion Co...68 readsJavaScript
Akashresilientbloke.hashnode.dev·Jan 12, 2023Coercion in JavaScript: Understanding Implicit and Explicit ConversionJavaScript is a loosely typed language, which means that the data type of a variable can change during the execution of a program. This flexibility is both a blessing and a curse, as it can lead to unexpected behavior and bugs if not handled properly...js
Vikas Taliyanvikas360.hashnode.dev·Jan 9, 2023Truthy and Falsy value.To understand the truthy and falsy values in Javascript first, let's understand what is Null, Undefined and NAN- Undefined: let user; console.log(user); It means value does not exist in compiler or accessing value that is not defined. it's value for...JavaScript
Ankit Dixitankithere.hashnode.dev·Aug 25, 2022Type Casting in JavaScriptIntroduction Type casting is the conversion of a type of data from one type to another. In javascript, converting a datatype is a bit weird but exciting in how they behave in different conditions. One can do typecasting in two different ways: Explic...21 likes·92 readsJavaScript
Chidera Paul Ugwuanyidera.hashnode.dev·Nov 5, 2020Coercing primitives in javascriptUnderstanding Coercion There are seven data types in javascript namely: null, undefined,string,number,symbol, boolean and object. The first six are called primitives. The last one, Object is called non-primitive. Javascript is dynamically typed. Mea...2 likes·139 readsJavaScript
Chidera Paul Ugwuanyidera.hashnode.dev·Nov 3, 2020Coercion in JavascriptHave you ever been intrigued by the result of these javascript questions? that [] + [] = "" [] + {} = "[object Object]" {} + {} = NaN {} + [] = 0 [] + 5 = "5" Well, I was both intrigued and shocked. That is why I delved in to find out what's happe...1 like·115 readsJavaScript