codeSTACKr

In JavaScript, which of the following values is not a Boolean false?

For more JavaScript tips & tricks 👉 https://youtu.be/ZI3q-_vjSZE

4 years ago | [YT] | 101



@codeSTACKr 

For more JavaScript tips & tricks 👉 https://youtu.be/ZI3q-_vjSZE

4 years ago | 1

@thedevcristian

With the help of this type of Daily Challenge plus the explanations of our great devs. Such a great help for us to understand more, and soon can help others, too. Thank you, guys!

4 years ago | 6  

@hiro6164

You thought it was false, but it was me, string!!

4 years ago | 8  

@soumadip_banerjee

We want more of these! Thank u so much :)

4 years ago | 3  

@sunguru981

You know I was soo noob, that I used to do Boolean(“false”) coz whatever we store on localStorage is turned to a string, only then I can to realize, that it always returns true no matter what. Then I switched to string logical expressions to convert them as boolean Like “true” === “true” would be converted as true and vice versa. So yeah TLDR: 4 th option lol

4 years ago | 2  

@osamagamal495

The last. It's a string not literally a false value.

4 years ago | 1  

@aatifkhan96

Anything you put inside the "string" is true ! Even if it's "false"

4 years ago | 4  

@farhanaditya2647

Damn. I didn't see the quotation marks around false.

4 years ago | 1  

@mariosanz.

Boolean("false") because it's a non-empty string

4 years ago | 1