What does the construct x = x || y mean?
What is the double pipe operator (||)? The double pipe operator (||) is the logical OR operator . In most languages it works the following way: If the first value is false, it checks the second value. If that’s true, it returns true and if the second value is false, it returns false. If the … Read more