Logical operations in JavaScript - Yoga LMS