Home >Web Front-end >JS Tutorial >Use parseInt for data type conversion during js numerical calculation (jquery)_javascript skills
The data obtained by js is of string type by default. If you perform numerical operations, you must use parseInt to convert into numerical values.
html code:
js code:
});