Knowledge worth sharing.
var x = 5; var y = '5'; if (x == y) { console.log('same'); } else { console.log('not same'); }