I start learning javascript, and found some interesting thing
I just can't find any difference between !! and Boolean, but the speed performance seems to be much better with !!
!! and Boolean(...) are functionally equal. But you should probably use the Boolean constructor in most situations because it is easier to understand by most people, even by beginners.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With