← All freeCodeCamp videos

Logical operators && TRICKS with short-circuit evaluation - Beau teaches JavaScript

77,401 views 1,122 likes 2017-03-20 5:11 Watch on YouTube ↗ freeCodeCamp ↗
Web DevelopmentJavaScript

Chapters

No chapter markers in this video's description.

Show the creator's full description
Short-circuit evaluation happens when using conditionals with && or ||. The second argument is only evaluated when the first argument is not enough to determine the value of the expression. Learn some tricks using short-circuit evaluation in JavaScript. Code: 🔗 http://codepen.io/beaucarnes/pen/jyGYQX?editors=0012 More info: 🔗 http://www.jstips.co/en/short-circuit-evaluation-in-js/ Beau Carnes on Twitter: https://twitter.com/carnesbeau ⭐JavaScript Playlists⭐ ▶Data Structures and Algorithms: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkso-IbgiiP48n-O-JQA9PJ ▶JavaScript Basics: https://www.youtube.com/playlist?list=PLWKjhJtqVAbk2qRZtWSzCIN38JC_NdhW5 ▶Design Patterns: https://www.youtube.com/playlist?list=PLWKjhJtqVAbnZtkAI3BqcYxKnfWn_C704 ▶ES6: https://www.youtube.com/playlist?list=PLWKjhJtqVAbljtmmeS0c-CEl2LdE-eR_F ▶Clean Code: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkK24EaPurzMq0-kw5U9pJh - We're busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community. Join our community at https://freecodecamp.com Read great tech articles at https://medium.freecodecamp.com ❤️ Support for this channel comes from our friends at Scrimba – the coding platform that's reinvented interactive learning: https://scrimba.com/freecodecamp

Description and video by freeCodeCamp.org. This page is an independent companion view; the video is embedded from YouTube.