CWO
Member since Oct 24, 2012
- Profile: /members/10381-cwo.htm
- Comments: 1
Recent Blog Comments By CWO
-
Javascript's IN Operator Does Not Work With Strings
Posted on Oct 24, 2012 at 9:40 AM
Well, it's pretty simple, actually. Consistent results come out of consistent data. You are initialising your sting as a primitive value and your number as an object. Native values don't have properties and in particular they don't have the method 'in'. To have normalised data you can compare you ... read more »