JavaScript vs Python Equality Comparison

JavaScript really said: “5” == 5 😭 Coming from Python… this feels illegal In Python → strict comparison In JavaScript → “yeah sure, why not” Same symbol. Completely different behavior. Learning a new language really humbles you. “This is why people say: always use === in JavaScript.” Anyone else got confused by this? #javascript #python #webdevelopment #programming #codinglife #developerjourney #learninpublic

  • text

Ans is Equal, because == not checking strictly

Like
Reply

To view or add a comment, sign in

Explore content categories