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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Algebra 1 Lesson #32 How to Use Special Polynomial Product FormulasJavaScript for Beginners Lesson #5 String Concatenation and Template LiteralsAlgebra 1 Lesson #41 How to Factor Using Special Factoring FormulasAlgebra 1 Lesson #19 How to Graph a Linear Inequality in Two VariablesAlgebra 1 Lesson #34 How to Divide Polynomials Using Long DivisionAlgebra 2 Lesson #59 Rationalizing a Binomial DenominatorExponents and The Order of OperationsSolving Quadratic Equations by Completing the Square Practice Test Full SolutionsAlgebra 2 Lesson #58 Rationalizing the DenominatorSolving Linear Systems in three Variables using Matrix Methods Practice Test Full SolutionsFinding Reference Angles | Trigonometric Functions of Non-Acute AnglesIncreasing, Decreasing, and Constant Intervals from the Graph of a FunctionSpecial Factoring Practice Test #9Special FactoringAlgebra 2 Lesson #48 Introduction to Rational Expressions | Simplifying | Find the DomainFinding Trigonometric Function Values Using a Calculator | Inverse Trigonometric FunctionsJavaScript for Beginners #24 Introduction to Functions in JavaScriptPre-Algebra Lesson #37 Operations with Mixed Numbers | Adding, Subtracting, Multiplying, & DividingPre-Algebra Lesson #8 Subtracting Whole Numbers | Number Line SubtractionJavaScript for Beginners #70 Enhanced Object Literals