🚀 JavaScript Interview Questions - Part 2!
Test your JS knowledge with this tricky question:
👉 console.log(true + true);
💡 Answer: 2
📌 Explanation:
In JavaScript, true is treated as 1 and false as 0 in numerical operations.
So, true + true becomes 1 + 1 = 2.
💻 Stay tuned for more JavaScript interview questions! Don't forget to Like, Share, and Subscribe! 🎯
#JavaScript #JSInterviewQuestions #Coding #WebDevelopment #Shorts #Programming #Tech #LearnJS #JavaScriptTricks #JavaScriptBasics #TechInterview #CodingTips
コメント