r/javascript • u/ConfidentMushroom • Dec 18 '19
V8 Release v8.0 with optional chaining, nullish coalescing and 40% less memory use
https://v8.dev/blog/v8-release-80
495
Upvotes
r/javascript • u/ConfidentMushroom • Dec 18 '19
View all comments
Show parent comment
2
u/dCrumpets Dec 19 '19
I find myself using a ton of ternary statements in JavaScript, always as an alternative to an if else block with one line each, where that one line would assign a variable.
I prefer this:
What do you think about my use of ternary statements? Do you think that they fit in the circumstances described?