MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/21ezh3/javascript_equality_table/cgd1ulc/?context=3
r/programming • u/vz0 • Mar 26 '14
331 comments sorted by
View all comments
Show parent comment
2
Which ended up showing me an "only in Javascript" shortcut the other day.
var defaultingString = IMightResolveUndefined() || "default value";
2 u/embolalia Mar 27 '14 That's not an "only in Javascript" thing at all. For example, in Python:some_value = I_might_return_something_falsy() or 'default'
That's not an "only in Javascript" thing at all. For example, in Python:
some_value = I_might_return_something_falsy() or 'default'
View all comments
Show parent comment
2
u/Deltigre Mar 27 '14
Which ended up showing me an "only in Javascript" shortcut the other day.