What you May Not Know About JavaScript’s Logical AND Operator



6 thoughts on “What you May Not Know About JavaScript’s Logical AND Operator

  1. webnician

    The purpose of code is not only to cause the intended result, but to intuitively indicate the intent. “Good” languages are known for this correlation and good programmers are known for appreciating it. Shortcuts are only good if you have a hot date, which programmers rarely do.

  2. ptnplanet

    Using this “cool stuff” creates – as you said – not so cool, nice and readable code. It’s fine for quick and dirty coding, but I would never use it in production environment or when developing in a team.

  3. DrRhoxus

    Using a local jQuery copy if CDN isn’t available is used in the HTML5 Boilerplate by Paul Irish.

    It’s a pretty nifty trick I’d say.

Leave a Reply