The example in this article describes the usage of the toUpperCase method of js. Share it with everyone for your reference. The specific analysis is as follows:
Definition and usage:
toUpperCase() method is used to convert strings to uppercase.
Grammar:
stringObject.toUpperCase()
Return value:
A new string in which all lowercase characters of stringObject are converted to uppercase characters.
Example:
In this example, "Hello world! jb51.net" will be displayed in uppercase letters:
The effect is as follows: HELLO WORLD! JB51.NET
I hope this article will be helpful to everyone’s JavaScript programming design.