Boolean() vs !! in JavaScript: The Ultimate Guide to Truthy and Falsy

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • Let's have a look at the difference between Boolean and !! (double exclamation mark) in JavaScript/TypeScript and when you should use them.
    For your reference, check this out:
    developer.mozi...
    🏫 My Udemy Courses - www.udemy.com/...
    🎨 Download my VS Code theme - marketplace.vi...
    🐦 Find me on Twitter - / dcodeyt
    💸 Support me on Patreon - / dcode
    📰 Follow me on DEV Community - dev.to/dcodeyt
    📹 Join this channel to get access to perks - / @dcode-software
    If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
    #dcode #javascript #typescript

Комментарии • 5

  • @alexanderkomanov4151
    @alexanderkomanov4151 25 дней назад

    Thanks a lot for this video!

  • @kidszone6276
    @kidszone6276 28 дней назад +1

    Nice

  • @tochimclaren
    @tochimclaren 24 дня назад

    So ! is not and !! Is a bool checker.

  • @suelingsusu1339
    @suelingsusu1339 28 дней назад

    Superb explanation for the difference and use cases... 👏👏👏👏👏👌👌👌👌👍👍👍👍🙏🙏🙏🙏🙏🌹🌹🌹🌹🌹🖖🖖🖖🖖🖖🖖