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
Thanks a lot for this video!
Nice
🙏🙏
So ! is not and !! Is a bool checker.
Superb explanation for the difference and use cases... 👏👏👏👏👏👌👌👌👌👍👍👍👍🙏🙏🙏🙏🙏🌹🌹🌹🌹🌹🖖🖖🖖🖖🖖🖖