Boolean() vs !! in JavaScript: The Ultimate Guide to Truthy and Falsy
Вставка
- Опубліковано 28 вер 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
Thanks a lot for this video!
So ! is not and !! Is a bool checker.
Nice
🙏🙏
Superb explanation for the difference and use cases... 👏👏👏👏👏👌👌👌👌👍👍👍👍🙏🙏🙏🙏🙏🌹🌹🌹🌹🌹🖖🖖🖖🖖🖖🖖