Ternary Operator - Beau teaches JavaScript



1
22134

The ternary operator, or conditional operator, takes three arguments and is basically a shortened way of writing an if-else statement. Code: 🔗 http://codepen.io/beaucarnes/pen/oBbegb?editors=0012 More info: 🔗 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator Beau Carnes on Twitter: https://twitter.com/carnesbeau ⭐JavaScript Playlists⭐ ▶JavaScript Basics: https://www.youtube.com/playlist?list=PLWKjhJtqVAbk2qRZtWSzCIN38JC_NdhW5 ▶ES6: https://www.youtube.com/playlist?list=PLWKjhJtqVAbljtmmeS0c-CEl2LdE-eR_F ▶Design Patterns: https://www.youtube.com/playlist?list=PLWKjhJtqVAbnZtkAI3BqcYxKnfWn_C704 ▶Data Structures and Algorithms: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkso-IbgiiP48n-O-JQA9PJ ▶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 Follow us on twitter: https://twitter.com/freecodecamp Like us on Facebook: https://www.facebook.com/freecodecamp Follow Quincy on Quora: https://www.quora.com/Quincy-Larson

Published by: freeCodeCamp.org Published at: 7 years ago Category: آموزشی