Logical operations in JavaScript - e-noodle.com