Parses a string and returns an integer in a given radix.
- Category: JS Number Reference — part of the JavaScript Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "Number.parseInt()" in one sentence, then back it up with a tiny example
// Number.parseInt() — minimal example
console.log("Number.parseInt()");Tip
Quick recall: "Number.parseInt()" — parses a string and returns an integer in a given radix.