2 ms·
To someone reading the code, parseInt actually describes what your intent is while Math.round just happens to work because it coerces the type.
by paulgb 7y ago
To someone reading the code, parseInt actually describes what your intent is while Math.round just happens to work because it coerces the type.