Truthy & Falsy Values in JavaScript

  Рет қаралды 12,991

Steve Griffith - Prof3ssorSt3v3

Steve Griffith - Prof3ssorSt3v3

Күн бұрын

Booleans are TRUE and FALSE. That's a simple concept. But what other things would be considered "Falsy"? Are there other things that would never return true in an if statement.
Code GIST: gist.github.co...
MDN Falsy reference: developer.mozi...

Пікірлер: 28
@jake445
@jake445 2 жыл бұрын
Thansk for making this video for us. I feel this is one of the underlooked concept of JavaScript, not many people watches it. I was literally baffled me when I was building a project for practice.
@rotrose7531
@rotrose7531 4 жыл бұрын
Thank you for all the positive effects your tutorials brings on me. You definitely changed something in my attitude in learning.
@CameronChardukian
@CameronChardukian 5 жыл бұрын
Easy to understand. Thanks for sharing. I've been watching a lot of your videos as I work my way through the FCC curriculum.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 5 жыл бұрын
Good luck with FCC. They actually use my video on Google fonts on their KZbin channel.
@ArunYokesh04
@ArunYokesh04 6 жыл бұрын
Really Healthy javascript Topics thumbs up.
@syedarmaghanhassan4652
@syedarmaghanhassan4652 3 жыл бұрын
Hey Steve! Kickass job man! Thanks! A challenge for you: could you please give like 5 more examples of this, each getting a little bit more complex than the previous one; jusssssssssssssst a little bit complex. We are beginners and would probably won't understand very complex examples anyway. This challenge will help us understand how can we use this true/false thing at our own!
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
There are hundreds of examples throughout my other videos
@JesusSaves-007
@JesusSaves-007 4 жыл бұрын
Clear and easy to understand. Truthy. Subscribed.
@tiffanychan478
@tiffanychan478 3 жыл бұрын
Thank you for the video. When to use log()? Is it the same as console.log() ?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
Log is my shorthand variable for console.log. look at the top of the file.
@tiffanychan478
@tiffanychan478 3 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 Thank you!
@itsthecrazytom7855
@itsthecrazytom7855 4 жыл бұрын
Easy to understand and very clear lesson, thanks!
@programmingwithjanaravi6981
@programmingwithjanaravi6981 7 жыл бұрын
good video thanks
@dylanm7638
@dylanm7638 3 жыл бұрын
thanks , this saves lot of times
@chesterxp508
@chesterxp508 3 жыл бұрын
Another very cool tutorial !!!
@karanjotsandhu237
@karanjotsandhu237 4 жыл бұрын
simple and precise explanation
@visiongoldman5267
@visiongoldman5267 Жыл бұрын
Thank you!!
@Genesis0_o
@Genesis0_o 8 ай бұрын
You are the best
@srinath7318
@srinath7318 2 жыл бұрын
Thank you
@jkk9829
@jkk9829 4 жыл бұрын
that's a simple concept, but what is the purpose of giving values to be either truthy or falsy? great video, btw;))
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 4 жыл бұрын
if statements, ternary statements, switch case statements etc. Whenever you need your program to make a decision about something. The if statement etc need to be able to evaluate anything as a yes or no condition - truthy or falsey.
@jkk9829
@jkk9829 4 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 thank you!!
@xesiusprime9360
@xesiusprime9360 2 жыл бұрын
nice thanks
@JD-kf2ki
@JD-kf2ki 4 жыл бұрын
Please next time do 1080p.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 4 жыл бұрын
The newer videos are in 1080.
@yarik83men51
@yarik83men51 4 жыл бұрын
+++
@maryamzaki1097
@maryamzaki1097 2 жыл бұрын
thank you
Logical Short-Circuiting in JavaScript
9:51
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 6 М.
Reference Vs Value In JavaScript
15:12
Web Dev Simplified
Рет қаралды 184 М.
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 1,5 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 31 МЛН
Truthy && Falsy in JavaScript !!
9:51
Sam Meech-Ward
Рет қаралды 2,5 М.
JavaScript Namespaces
10:55
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 16 М.
How to (actually) learn Linux
11:57
Bread on Penguins
Рет қаралды 10 М.
Coercion and falsy values in JavaScript
6:57
Hitesh Choudhary
Рет қаралды 55 М.
Callback and Higher Order Functions in JavaScript
16:41
CodAffection
Рет қаралды 4,8 М.
JavaScript Chaining Array Methods and Using Arrow Functions
8:06
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 12 М.
Truthy & Falsy Values | JavaScript Tutorials for Beginners
5:48
Gourab Banerjee
Рет қаралды 100
JavaScript for Beginners #16: Truthy and Falsy Values in JavaScript
10:33
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН