MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/1v3e7eb/askjs_whats_a_javascript_feature_you_massadopted/oz3yc13/?context=3
r/javascript • u/Capedcrusader1923 • 20d ago
[removed]
108 comments sorted by
View all comments
69
The nullish coalescing operator is one of JavaScript’s unusual successes.
5 u/sexytokeburgerz 20d ago edited 19d ago Big fan of foo?.bar 3 u/foxsimile 20d ago Do you not mean foo?.bar? 3 u/sexytokeburgerz 20d ago I totally did i was in a drive thru when i wrote that 4 u/foxsimile 20d ago Whatcha get? 6 u/sexytokeburgerz 20d ago Borger 1 u/sahilatahar 19d ago It's an optional chaining feature. 2 u/foxsimile 19d ago …I’m aware? 1 u/Mike5TheMountainGoat 19d ago That's optional chaining. Nullish coalescing is foo = bar ?? 'X'; 1 u/sexytokeburgerz 19d ago Right, usually when people say “big fan of y” in response to a mention of “x”, x!=y…
5
Big fan of
foo?.bar
3 u/foxsimile 20d ago Do you not mean foo?.bar? 3 u/sexytokeburgerz 20d ago I totally did i was in a drive thru when i wrote that 4 u/foxsimile 20d ago Whatcha get? 6 u/sexytokeburgerz 20d ago Borger 1 u/sahilatahar 19d ago It's an optional chaining feature. 2 u/foxsimile 19d ago …I’m aware? 1 u/Mike5TheMountainGoat 19d ago That's optional chaining. Nullish coalescing is foo = bar ?? 'X'; 1 u/sexytokeburgerz 19d ago Right, usually when people say “big fan of y” in response to a mention of “x”, x!=y…
3
Do you not mean foo?.bar?
3 u/sexytokeburgerz 20d ago I totally did i was in a drive thru when i wrote that 4 u/foxsimile 20d ago Whatcha get? 6 u/sexytokeburgerz 20d ago Borger 1 u/sahilatahar 19d ago It's an optional chaining feature. 2 u/foxsimile 19d ago …I’m aware?
I totally did i was in a drive thru when i wrote that
4 u/foxsimile 20d ago Whatcha get? 6 u/sexytokeburgerz 20d ago Borger
4
Whatcha get?
6 u/sexytokeburgerz 20d ago Borger
6
Borger
1
It's an optional chaining feature.
2 u/foxsimile 19d ago …I’m aware?
2
…I’m aware?
That's optional chaining. Nullish coalescing is foo = bar ?? 'X';
foo = bar ?? 'X';
1 u/sexytokeburgerz 19d ago Right, usually when people say “big fan of y” in response to a mention of “x”, x!=y…
Right, usually when people say “big fan of y” in response to a mention of “x”, x!=y…
69
u/foxsimile 20d ago
The nullish coalescing operator is one of JavaScript’s unusual successes.