- The **parseInt** method parses a string argument and returns an integer of the specified radix or base - This method returns an integer number parsed from the given string - If the first character ...
The parseInt tests has this as a test. expect (bestPracticesAnswers.parseInt ('0x12')).to.eql (0); I'm not sure I see why it should be 0 though, if you have 0x at the beginning of a string for ...