News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by qsort on Saturday May 15, 2021 @01:22PM (#27167085)

    > 0 ?? 1
    0

    > 0 || 1
    1
Re:Modern Javascript: Everything you missed over the last 10... by nailer on Saturday May 15, 2021 @01:30PM (#27167165)
I like this answer because it’s practical. Eg score 0 is a different thing from score undefined (which means you don’t know the score).