JavaScriptShort
true + true + true = 3?! 🤯
A viewer commented "true + true + true = 3", and they're right! Here's why JavaScript does maths like this, and how it can break a shop's total.
Today's lesson: computers follow exact rules, not common sense. Always turn text into a number before you add.
Got a weirder one Comment it, and I'll explain it next.
HemantInsights
@hemantinsightsdev14 videos16 Shorts subscribers









