Source Code:
(back to article)
Submit
Result:
Report an issue
let result = value1 || value2 || value3; // Returns the first truthy value or the last value if all are falsy