Saineshwar Bageri

Saineshwar Bageri

  • 82
  • 23.5k
  • 24m

Javascript Function comparing issue

Jun 3 2014 8:26 AM
I Have Javascript Function in Which i am comparing 2 value but they are not matching.

function cool() {
debugger;
var ss = 123123123123123123123123123123;
(ss == '123123123123123123123123123123'); // true

}


Which show me ss = 1.2312312312312312e+29

which takes

(1.2312312312312312e+29 == '123123123123123123123123123123')

it do not match


Answers (2)