Skip to main content
bash TV

JavaScript Operators in 60 seconds ! #javascript

AB Automation Hub

7 views26 Oct 2026

YouTube

In JavaScript, 5 + "5" gives 55, not 10. Here is why. + joins text. If one side is a string, JavaScript joins instead of adding. === checks value and type. 5 === "5" is false. == converts first, then compares. 5 == "5" is true. && is true only when both sides are true. That's how a login check works. Use === almost always. The result is easier to predict. Real examples in this video: Shopping cart: price * qty Login check: emailOk && passwordOk Follow ABAutomationHub for more JavaScript, explained simply. #javascript #learnjavascript #coding #programming #webdevelopment #codingforbeginners #shorts #abautomationhub

Join the discussion

Sign in to join the discussion

Sign in