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
Soubhagya Sethysoubhagyasethy.hashnode.dev·Mar 18, 2023JavaScript's Nullish Coalescing Operator: A Beginner's GuideHey geeks! Have you ever encountered a situation where you need to check if a variable is null or undefined and then assign a default value to it? If yes, then the Nullish Coalescing Operator in JavaScript can make your code simpler and cleaner. Unde...62 readsJavaScript
Wisdom Geekwisdomgeek.hashnode.dev·Mar 18, 2021Using the optional chaining operator in JavaScriptEvery now and then, you come across a JavaScript feature that vastly changes the way you write it. Destructuring, arrow functions, modules have been some of those features for me. Optional chaining is going to be the next one on that list for me. Opt...JavaScript