What will the console.log([] == false) statement output?
a)
trueb)
falsec)
undefinedd)
NaNAnswer:
a)
trueExplanation:
When comparing an empty array [] with false using the loose equality operator (==), JavaScript converts the array to a boolean and compares it with false, resulting in true.