JavaScript Array Concatenation

💡 JavaScript Tip of the Day What will be the output? console.log([] + []); 👉 Answer: "" (empty string) JavaScript converts arrays to strings before concatenation 😄 #JavaScript #DeveloperLife #FrontendDeveloper #CodingTips #LearningJS

It's true, But only with + operator. console.log([] - []); // 0

To view or add a comment, sign in

Explore content categories