xxxxxxxxxx
const stringValue = "123";
const intValue = parseInt(stringValue, 10);
console.log(intValue); // Output: 123
xxxxxxxxxx
const str = "123";
const num = parseInt(str);
console.log(num); // Output: 123
xxxxxxxxxx
let str = "540";
let num = parseInt(str);
console.log(num); //540