DEV Community

Discussion on: || and && are not "logical operators" in JavaScript

Collapse
 
jonrandy profile image
Jon Randy 🎖️

Yup, it's great. Actually makes it way more useful than returning a boolean

Collapse
 
chinedu__ikechi profile image
Chinedu Ikechi

Yeah, Jon.

It's more like an enlightenment. Most people think it returns a boolean value.