parseInt / parseFloat
Also written: parseInt, parseFloat
Functions that read digits from the start of a string and stop at the first character that doesn't fit. `parseInt` keeps only the whole number.
Also written: parseInt, parseFloat
Functions that read digits from the start of a string and stop at the first character that doesn't fit. `parseInt` keeps only the whole number.