string tonumber in js code example Example: tonumber javascript number = parseInt("010"); // number = 10