r/javascript • • Jul 22 '26

AskJS [AskJS] what's a javascript feature you mass-adopted way too late and felt dumb about

64 Upvotes

107 comments sorted by

View all comments

68

u/foxsimile Jul 22 '26

The nullish coalescing operator is one of JavaScript’s unusual successes.

5

u/sexytokeburgerz Jul 22 '26 edited Jul 23 '26

Big fan of

foo?.bar

3

u/foxsimile Jul 23 '26

Do you not mean foo?.bar?

3

u/sexytokeburgerz Jul 23 '26

I totally did i was in a drive thru when i wrote that

0

u/[deleted] Jul 23 '26

[deleted]

2

u/foxsimile Jul 23 '26

…I’m aware?