Javatpoint Logo
Javatpoint Logo

JavaScript String toUpperCase() Method

The JavaScript string toUpperCase() method is used to convert the string into uppercase letter. This method doesn't make any change in the original string.

Syntax

The toUpperCase() method is represented by the following syntax:

Return

String in uppercase letter.

JavaScript String toUpperCase() Method Example

Let's see some simple examples of toUpperCase() method.

Example 1

Here, we will print the string in uppercase letter.

Test it Now

Output:

JAVATPOINT

Example 2

This is one more example to print the string in uppercase letter.

Test it Now

Output:

JAVATPOINT TUTORIALS

Next TopicJavaScript String





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA