1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Double && (and) Double || (or) = Double Functionality

    javascriptJavaScript

    The and (&&) and or (||) operators in javascript do not function like traditional logical operators. We can use them to our advantage to eliminate some boilerplate code when writing conditional expressions.

    Additional jsbin: https://jsbin.com/qipina/edit?js,output