JavaScript Tutorial For Beginners #11 – Booleans in JavaScript



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 :).

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

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

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

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

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

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

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

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

19 thoughts on “JavaScript Tutorial For Beginners #11 – Booleans in JavaScript

  1. 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.

  2. 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.

  3. 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!

  4. 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

Leave a Reply

Your email address will not be published. Required fields are marked *