Javascript
Apr 8, 2026
What does this output?
console.log([] + [])
Explanation
Both arrays convert to empty strings via toString(). "" + "" = "".
📝
Reviewed by CodeShot Editorial
Every challenge is code-reviewed by senior developers to ensure accuracy and real-world relevance. Learn more.