Can You Solve This Tricky JavaScript Type Coercion Problem?

preview_player
Показать описание
Can you solve this tricky JavaScript problem with type coercion? Is true equal to false? Does this have to do with strict or loose equality, or another trick of JS?

Prepping for your frontend interviews? Use code "conner" for a discount on my product FrontendExpert:

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

love these .... i'd love more of these

Grnder.
Автор

That's why you need to make both variable the same type to make the code understandable. This is one of the reason why i hate JS. Confusing

donkeytrump
Автор

Can you please tell me what I should do in order to become a complete full stack actually get a God job

dhyanrai
Автор

You should pretty much never write any code like this

robertsandiford