News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by frosted-flakes on Saturday May 15, 2021 @01:24PM (#27167100)
?? only coalesces nullish values (hence the name), which only includes null and undefined. || coalesces falsey values, which include false, 0, and empty strings. || might work most of the time, but it requires extra checks when falsey values are valid.

There are no comments on this comment yet.