JavaScript String toUpperCase() method
The JavaScript string toUpperCase() method transforms the given string into the uppercase letter. Syntax: string.toUpperCase() Return: String with upper case letters. Example: <!DOCTYPE html> <html> <body> <script> var a =”Hello World!”; document.write(a.toUpperCase()); </script> </body> </html>