The || or Logical OR operator finds the first truthy expression in its operands and returns it. This too employs short-circuiting to prevent unnecessary work. It was used before to initialize default parameter values IN functions before ES6 Default function parameters was supported.
#javascript #js #logicaloperator #logicaloperators
![](https://s2.save4k.ru/pic/Pw8yFOHa18k/maxresdefault.jpg)