paint-brush
The JavaScript Logical OR Operator: How Does it Work?by@smpnjn
481 reads
481 reads

The JavaScript Logical OR Operator: How Does it Work?

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

Too Long; Didn't Read

The || operator is frequently used in logical statements, as well as defaulting to non-falsy values if one is found. It's a flexible operator which is core to understanding JavaScript. If you're interested in another, similar, operator, you may also want to read about the nullish coalescing operator.

Coin Mentioned

Mention Thumbnail
featured image - The JavaScript Logical OR Operator: How Does it Work?
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

Languages

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