Yasin Sarkaryasinsarkar.hashnode.dev·Oct 19, 2024🤔 Understanding the Nullish Coalescing Operator (??) vs. Logical OR (||) in JavaScriptWhen building JavaScript applications, handling null and undefined values is often a crucial part of writing stable and user-friendly code. Two powerful operators can help with this: the Nullish Coalescing Operator (??) and the Logical OR (||) operat...JavaScript
Vinay Chhabrablog.vinaychhabra.com·Apr 9, 2024Nullish Coalescing operatorUnderstanding the Nullish Coalescing Operator in JavaScript JavaScript is a flexible programming language that adds new capabilities every iteration (ECMAScript 2020 and up) to improve functionality and write more legible, concise code. The Nullish C...JavaScript
Aman kumaramankumr.hashnode.dev·Feb 23, 2023Nullish coalescing (??) & Optional chaining (?.) in JSIntroduction While writing JavaScript code we come across multiple errors like TypeError: Cannot read property TypeError: ‘undefined’ is not an object TypeError: null is not an object and these errors were caused when we try to reference a varia...45 readsJavaScript
Asif Siddiquesemi-colon.hashnode.dev·Feb 19, 2023Demystifying Nullish Coalescing & Optional Chaining operators in JavaScriptUpgrades are intended to improve existing things, whether in the physical world or the realm of computing. JavaScript, like any other technology, has undergone an upgrade that introduced two operators to enhance its functionality. The two operators h...79 readsNullish coalescing
Joseph Tsegentsegsxaviers.hashnode.dev·Jan 9, 2023Understanding Nullish Coalescing in TypescriptWhat Nullish Coalescing is all about Nullish coalescing is an operator introduced in TypeScript version 3.7 that allows developers to specify a default value for null or undefined. This can be especially useful when working with strict null checking,...32 likes·126 readsTypeScript Tutorial
Kavita Pathakkavitapathak03.hashnode.dev·Jul 22, 2022All about Nullish coalescing operator (??)Introduction The Nullish Coalescing Operator (??) in Javascript allows us to check if a value is null or undefined, and if it is then it provides us with a fallback value. Let's also see its actual definition, according to MDN documentation : The nu...138 readsNullish coalescing
Nisha Sennishasen.hashnode.dev·Jun 4, 2022Nullish coalescing operator (??)Hey everyone, While learning about JavaScript I came across a very cool feature in it. It’s called Nullish Coalescing operator. Does the term look so difficult, I felt that too while I came across it. I felt like this might be a very difficult concep...2 likes·28 readsJavaScript