Q. What will be the output?
Code:
console.log(!!0);
β
Correct Answer: (B)
false
Explanation: 0 is falsy, so !!0 results in false.
console.log(!!0);
Explanation: 0 is falsy, so !!0 results in false.