Skip to main content
4 events
when toggle format what by license comment
May 15, 2017 at 13:45 comment added andresp No, you can do false-coalescing with the logical OR in JavaScript.
Nov 18, 2016 at 21:52 comment added user19302 This is not a null-coalescing operator. Null-coalescing only works on a single value, not on a chain of property access/function invocations. You can already do null-coalescing with the logical OR operator in JavaScript.
Jul 7, 2011 at 16:40 comment added Shog9 true in the strict sense, but as other answers have noted JavaScript's logical OR operator can behave as sort of a false -coalescing operator, allowing you to achieve the same brevity in many situations.
Jul 7, 2011 at 16:34 history answered CassOnMars CC BY-SA 3.0