Advertisement
728x90
Negating an array with ! character will coerce the array into a boolean. Since Arrays are considered to be truthy So negating it will return false.
javascript
1console.log(![]); // falseAdvertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 16
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
359of476