Parse Number or Null

Variables & Types ยท easy

Implement `toNumber(str)` returning the numeric value of `str`, or `null` when it is not a valid number.

Learning resources

Loading...

Run your code to see results.