Learn about the differences between Number() and parseInt() in JavaScript, how they handle empty or nullish values, and their interpretation of values in scientific notation.

1m read timeFrom rahuulmiishra.medium.com
Post cover image
Table of contents
1. Number(x) does type coercion to number, while parseInt(x) does parsing.2.Number works well with Scientific Numbers
1 Comment

Sort: