What is the purpose of the parseInt() function in JavaScript?
parseInt()
Converts a string to an integer.
Converts an integer to a string.
Rounds a number to the nearest integer.
Truncates the decimal part of a number.