Yesterday, I came across the following syntax:
In other languages that I am familiar with (PHP, C, C++, Java), when the
|| operator is used, it is a logical OR operator - i.e. it returns 1 if either of its operands are logically true.
x (as per my example above) as if it were an object, array, string, etc.
So what does