JavaScript Tip: Concise Expressions Using Logical Operators

preview_player
Показать описание
Understanding the nature of logical operators and the concept of truthy and falsey and help write concise expressions. We look at a few examples in this tutorial.

For more resources on JavaScript:

Full personalized courses on JavaScript:
Courses offered on Udemy: Getting Started or Advanced Topics at a huge discount:

Tutorials referred to in this video:
Рекомендации по теме
Комментарии
Автор

Thank you, love to learn new things everyday.👌👍

carlosfernandez
Автор

5:11 But I discovered the ES6 method doesn't work _exactly_ the same way. When using the other two methods (the "IF" statement and logical OR), passing *null* to the function returns the default value, but when I use the ES6 method, passing null returns null.

asmartbajan