paint-brush
What are Truthy and Falsy Values in JavaScript?by@smpnjn
480 reads
480 reads

What are Truthy and Falsy Values in JavaScript?

by Johnny Simpson2mJuly 12th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In Javascript, things can be true, or false, but they can also be truthy or falsy. The concept of truthy and falsy are usually considered only in a boolean context, such as in an if..else statement, but they also affect other parts of Javascript - for example, what is returned from the logical OR operator.
featured image - What are Truthy and Falsy Values in JavaScript?
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Newsbreak
Platypush
Coffee-web
Trendcdn
Jakobs
Asorrybowl
Dedyn