Загрузка страницы

JavaScript for Beginners #16: Truthy and Falsy Values in JavaScript

What are truthy values in JavaScript? What are falsy values in JavaScript? In this lesson, we will talk about truthy and falsy values in JavaScript.

0:00 Introduction
0:20 MDN Truthy
1:15 MDN Falsy
1:55 The five falsy values
2:19 Revisiting the Number() function
3:17 Revisiting the String() function
3:40 The Boolean() function
4:31 Examples of truthy and falsy values with strings
5:44 Examples of truthy and falsy values with undefined and null
7:06 Examples of truthy and falsy values with 0 and NaN
8:25 Using truthy and falsy with if/else statements

JavaScript Playlist:
https://youtube.com/playlist?list=PLgIi4lM74yW2Mc8iFRJMgvamNWOOFDH-q

Falsy Values to Remember: 0, "", undefined, null, NaN

MDN Truthy
https://developer.mozilla.org/en-US/docs/Glossary/Truthy

MDN Falsy
https://developer.mozilla.org/en-US/docs/Glossary/Falsy

MDN Boolean
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean

NodeJS:
nodejs.org

VS Code:
code.visualstudio.com

Видео JavaScript for Beginners #16: Truthy and Falsy Values in JavaScript канала GreeneMath.com
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
9 января 2021 г. 1:38:07
00:10:33
Яндекс.Метрика