InterviewHubPRO
Section Overview
Q363

Question 363 of 521

Part 6: Async Internals, Memory, Microtasks & Web APIs (329 - 403)

70%
JavaScript Internals (521 Qs)•Part 6: Async Internals, Memory, Microtasks & Web APIs (329 - 403)

What happens with negating an array

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
  console.log(![]); // false