Javascript ?? vs ||
Found this great article → https://www.trevorlasn.com/blog/javascript-logical-operators
This is a small and useful snippet that makes it very clear on when to use ?? and when to use ||
// Let's see what || considers "falsy":
0 || "default" //...
siddhartharora.com1 min read