Faisalthefaisal.dev·9 hours agoJavaScript Coercion : Beyond BasicsIn JavaScript, we often see implicit type conversion in our code which occurs due to abstract operation. In JS, we use the term coercion for what's commonly known as type conversion. When we consider conversion and coercion, it's best to see them as ...Discuss·26 likes·31 readsJavaScript
David Okekefrontendokeke.hashnode.dev·Sep 11, 2023Why is Javascript so weird. Understanding Javascript CoercionObserve this behaviour "0" == false; // true "0" == ""; // false false == ""; // true "" == []; // true false == []; // true "" == {}; // false "true" == true; ...DiscussJavaScript
Pranav Jadhavthejrpranav09.hashnode.dev·Aug 18, 2023Understanding JavaScript Type Coercion and ConversionWelcome back to our JavaScript series! In this article, we're delving into the world of type coercion and type conversion. 👉🏻 JavaScript, being a dynamically-typed language, offers flexibility and convenience in many aspects of programming. One of ...Discuss·10 likes·43 readsJavaScript JavaScript
Priyanshupriyanshu9920.hashnode.dev·Jun 4, 2023Javascript - typesECMAScript is an organization that creates certain rules for all scripting language, it creates for JavaScript as well. In Javascript variables are not defined, values are defined. This is a stark contrast between js and other programming languages o...Discuss·1 like·48 readsJavaScript
Abhishek Patelapnicodeshala.hashnode.dev·May 28, 2023Unreveling Coercion in JavaScript: Understanding Implicit Type ConversionIntroduction: JavaScript is a versatile programming language that offers flexibility and convenience when it comes to handling data types. However, this flexibility can sometimes lead to unexpected behaviours due to a process called coercion. Coercio...Discuss·1 like·46 readsBackend Developmentjavascript type coercion
Yogendra Kumar V Ryogendrakumarvr.hashnode.dev·Apr 26, 2023Why JavaScript is Like No Other Language: An Inside Look at its Weirdest FeaturesAvoid Creating Variables Using var console.log(varVariable) // undefined var varVariable = 10; console.log(varVariable) // 10 Variables created with var are hoisted meaning the declaration is moved to the top of their scope before code execution. In...Discuss·95 readsJavaScript
kunal gavhaneblogs.kunalgavhane.com·Apr 16, 2023Implicit and Explicit Coercion in JavaScript .First of lets understand what is Implicit type Coercion in Javascript. JavaScript is a programming language that is widely used in web development. One of its unique features is the ability to implicitly convert data types during runtime. This featur...Discuss·1 like·60 readsJavaScript
Rajashree Parhirajashreeparhi.hashnode.dev·Feb 21, 2023Understanding loose equality and strict equalityIntroduction Before understanding == and ===, let's take a look at how the conversion from one data type to other works behind the hoods! Type Conversion Type conversion: As the name suggests, it is the process of converting one type into another. Va...Akash Kumar Singh and 1 other are discussing this2 people are discussing thisDiscuss·3 likes·135 readsJavaScript
Pranav Patanipranavpatani.hashnode.dev·Feb 16, 2023Understanding The Strict and Loose Equality Operators In JavaScriptThis blog will cover the concepts of type conversion, type coercion, loose equality operator, and strict equality operator in javascript, with the main focus on comparing the two operators. Introduction to Equality Operators In javascript, we have tw...Discuss·2 likes·56 readsJavaScript
Nitin mittalnitinmittal.hashnode.dev·Feb 14, 2023Lets understand the difference between == vs ===Introduction: First of all, as we are all aware that the equality operators ("==" and "===") are used to compare the two expressions on L.H.S and R.H.S for equality. They return a boolean value either True or False. Triple Equals '===' or Strict Equa...Discuss·1 like·61 readsequality operator in javascript