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