Jagdish Seervijspro.hashnode.dev·Apr 2, 2024Conversion and Coercion in jsIn JavaScript, type conversion and coercion are two concepts related to how values are converted from one data type to another. While they are often used interchangeably, they represent slightly different processes. Type Conversion: Type conversion i...Discuss·1 likeJavaScript
siddik sidsiddik.hashnode.dev·Mar 8, 2024Decoding JavaScript Mysteries: Unraveling the Memes Behind '11'+1 and '11'-1"We've all come across numerous memes highlighting the eccentricities of JavaScript. Many fellow bootcamp attendees I've met are firmly convinced that JavaScript possesses a mind of its own, seemingly determined to avoid throwing any errors. Join me a...DiscussJavaScript
Kyle Robinsblog.kylerobins.com·Dec 18, 2023Mastering JavaScript Type Conversion: A Comprehensive Guide for Web DevelopersJavaScript Type Conversion Type conversion in JavaScript refers to the process of converting a value from one data type to another. This process is often necessary when working with different types of data or when performing operations that expect a ...Discuss·33 readsjavascript type coercion
Faisalthefaisal.dev·Dec 2, 2023JavaScript 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·28 likes·431 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; ...Discuss·41 readsJavaScript
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·77 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·77 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·100 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·94 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 2 others are discussing this3 people are discussing thisDiscuss·3 likes·161 readsJavaScript