The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

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

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

3:24
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
Watch this lesson now
Avatar
egghead.io

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: http://jsbin.com/dodoli/9/edit?js,output

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?