JavaScript Tutorial For Beginners #11 - Booleans in JavaScript

preview_player
Показать описание
Yo guys, today we're gonna look at boolean values (true and false values) and the different values that are seen as "truthy" or "falsey" by JavaScript. To determine whether a value is truthy or falsey, we can use the built in JavaScript Boolean() function.

Other expressions can also be evaluated as true or false, for example, is 7 greater than 5. Is X smaller than Y etc. We'll go on to use expressions like this when we start using if statements and loops.

As always, any questions - just comment below :).

========== JavaScript for Beginners Playlist ==========

========== CSS for Beginners Playlist ==========

========== HTML for Beginners Playlist ==========

========== The Net Ninja ============

========== Social Links ==========

Рекомендации по теме
Комментарии
Автор

I had headphones on max volume and that ninja intro made me jump out of my chair! :P :D

PcpopravkeBlogspot
Автор

Came here from Colt Steele's Udemy web developer course for some in-depth followup on Booleans. Thank you for the clear and pragmatic explanations of this material! As a beginner programmer it is helpful to see actual applications of concepts sequentially instead of front-loading with too much theory. Perhaps some folks learn better that way, but I find I learn best through practical examples and having to figure my way out rather than just following along.

seanearnest
Автор

I also like how I could learn something real quick and as the video ends, I could go practice on that one thing I learn. With long video, I have to decide when I should stop and practice. With these, I don't have to.

justcoolstuff
Автор

Hey Net Ninja, love how you get through the topics with the short videos!!! Question, when you say we can determine whether a value is "truthy" or "falsey" is that another way for saying "true" or "false"? Or does it mean something else and i'm just completely missing it? Thanx! Ingrid

despiertacatolico
Автор

For remind, 0 = falsy, "" (string empty) = falsy, NaN and undefined = falsy. "txt random" = true, -1 = true, [] = true {} = true. that is all

joseflores-cxld
Автор

Very well explained as usual. Thank you. TT

TonySousa
Автор

Amazing video! Whatever that was, I want more of it!

austincoletowns
Автор

Hi Net Ninja, why the number 0 by it self is automatically false ? I'm referring to the example boolean(o); thank you for your answer

shiran
Автор

Just a word of advice, when referring to the double ==, identify it as IDENTICAL. For example, if "7 == 7", say: 7 is IDENTICAL to 7. Just to avoid confusion with the single '=' sign, which should be referred as 'equal'. Hope this helps!

JCMLR
Автор

Boolean(number/0) returns true
interesting

DanteHellDrive
Автор

me watching python tutorial
the net ninja: let's create a menu
me jumping to javascript tutorial
the net ninja: meat menu.

alexmason
Автор

please can you use the code editor when teaching some people cannot do what you do thnks

sciencegeeks
Автор

I`m watching this video (and this tutorial for JavaScript) in 2020 and I wonder is this still valid or there are a lot of changes ? should I continue to watch or look for something updated? Thanks.

FuzzYSrb
Автор

var iLikeDick = false
iLikeDick
*true*


fml

EmperorHerpes
Автор

I have a proj for billing system that requires block and lot checklist. What prog language can i use for my front and back-end? Thanks for reply Net Ninja!

binsbega
Автор

I typed the code in to try to see if the Boolean would work and it did not and I kept getting Xs on the left.

generalimperial
Автор

din din don din din don din dun dun din tur rururu whaa

rocknrolla