Dheeraj Malikdheerajmalik.hashnode.dev·Oct 30, 2023Nullish coalescing operator (??) vs OR(||)(raw notes)Nullish coalescing operator (??) if the left side operand is NULL or UNDEFINED, the right-hand side operand is returned.const foo = null ?? 'default string'; console.log(foo); // Expected output: "default string" Nullish values are : NULL ...Nullish coalescingAdd a thoughtful commentNo comments yetBe the first to start the conversation.