🔥 JS Fundamentals: what is truthy and falsy?

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I'm relatively new to my job, and to js as a whole. The amount of code where I fixed a "zero falsy" edge case is crazy

minamagdy
Автор

I never liked dealing with truthiness/falsiness, same for PHP. It's just uncomfortable for me. TypeScript + to make sure all conditionals are actually true/false for me.

Thorax
Автор

Also ([ ]+[ ]) is false




JS implicitly calls toString() on them

noredine
Автор

What extension are you using for displaying variable values to the left of the variable wherever it's used🤔, might come in handy.

onyelaudochukwuka
Автор

what extension do you have for viewing the output of the console.log? looks verr nice

kgaming
Автор

Anyone else wondering why “false” is the only value that is in doble quotes 😅

ChrisPHolder
Автор

Thanks
But why did you put two !! They cancel each other isn't it?

diwakardayal
Автор

I need cheat sheet of it. Sometimes a go to console to test it out

victorsalvans
Автор

there is object that is falsy in web browsers

(!!document.all) === false

xBZZZZyt