Why does 1 == True but 2 != TrueIn JavaScript, the double equals (==) operator performs type coercion when comparing two values. Type coercion is the process of converting one type of value to another type in order to compare them. When comparing a boolean value like true to a non-...Feb 28, 2023 · 3 min readiamtoufiq.hashnode.dev
What is Nullish Coalescing and Optional Chaining in JavaScript?As a dynamically-typed language, JavaScript allows for any data type for variables and allows for null or undefined values for values. It can be challenging and frequently involves a lot of error checking and conditional logic to deal with null or un...1Feb 20, 2023 · 3 min readiamtoufiq.hashnode.dev
Anonymous function in JavaScriptToday we’re talking about anonymous functions in JavaScript. Anonymous functions are a great way to write concise and reusable code that can be used in multiple places throughout your program. They allow you to create quick, one-off snippets of code ...Feb 13, 2023 · 3 min readiamtoufiq.hashnode.dev
Difference Between "==" and "===" in JavaScriptToday we’re going to talk about the difference between “==” and “===” in JavaScript. If you're a beginner, this can be a bit confusing but don't worry, by the end of this post you'll have a better understanding of what each operator does. Introducti...Feb 13, 2023 · 3 min readiamtoufiq.hashnode.dev
Type Error Vs Reference Error in JavaScriptHere are two errors that I see in my browser console all the time when working with JavaScript. Today we're going to talk about two common JavaScript errors: TypeError and ReferenceError. Both of these errors can be frustrating, but understanding the...Feb 13, 2023 · 2 min readiamtoufiq.hashnode.dev