What is the purpose of the toUpperCase() method in JavaScript?
toUpperCase()
Converts a string to all lowercase letters.
Converts a string to all uppercase letters.
Converts the first character of a string to uppercase.
Converts the last character of a string to uppercase.