JavaScript toLocaleUpperCase() function is used to convert string to upper case letters. See the code snippet:
toLocaleUpperCase()