Truthy && Falsy in JavaScript !!

Поділитися
Вставка
  • Опубліковано 10 лип 2022
  • What happens when you evaluate a value in a boolean context? JavaScript will interpret any value as either true or false, because every value in JavaScript is either truthy or falsy. And on that note, what's up with ! (bang) and !! (double bang)?
    Chapters:
    0:00​ Intro
    🔗Music
    www.epidemicsound.com/track/U...
    🔗Moar Links
    My Website: www.sammeechward.com
    Instagram: / meech_ward
    Github: github.com/orgs/Sam-Meech-Ward
  • Наука та технологія

КОМЕНТАРІ • 5

  • @benbetterby6456
    @benbetterby6456 Місяць тому

    Thank you for making such a wonderful video on this topic! I learned A LOT from your video. :)

  • @JohannGarrido
    @JohannGarrido 9 місяців тому

    Great novel/movie reference!

  • @insurgentamine9220
    @insurgentamine9220 Рік тому

    have never seen someone as concentrated and intelligent like you. thanks Boss

  • @nickkman90
    @nickkman90 2 роки тому

    Wonderful exploration of the particulars of JavaScript. I used to become frustrated with Javascript's excessively complex interpretation of simple concepts--but I've grown to accept the language for what it is.
    Your detailed explanations help make light of all the madness, and you're even able to approach it intellectually somehow. We just accept have to accept that -0 === 0, but they are indeed not the same in select scenarios.
    They even have a catchy term for "not actually true, but not like actually false" 😋. Falsy, what a world Javascript gives us.
    Thanks!

  • @avertry9529
    @avertry9529 2 роки тому +1

    The meaning of Life is Jesus, so 42 is most certainly a false value....
    Thanks for the 8 though.