Daniel Engelhardthardnold.hashnode.dev·Jan 23, 2024Why you should use ?? instead of ||We often see and write things like this: function sayHey(name) { name = name || "Precious"; console.log(`Hey ${name}`); } sayHey("Morty"); //Hey Morty sayHey(); //Hey Precious But did you know that the ?? operator, known as the nullish coal...2 likes·53 readsJavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.