Asela Priyadarshanazaselalk.hashnode.dev·Apr 25, 2023Understanding the Difference Between || (OR) and ?? (nullish coalescing) Operators in JavaScriptBoth || (OR operator) ?? (nullish coalescing operator) are the way of assigning default value in Javascript when dealing with undefined or other falsy values. However, they behave different in certain situations. The main difference between the two o...2 likes·27 readsJavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.