JavaScript Making Uppercase

To capitalize a text in JavaScript, the toLocaleUpperCase method is used.

The usage is as follows.

var strn = "I love coding.."; document.write( strn.toLocaleUpperCase() );

The result looks like this..



You May Interest

What is Difference Between Call and Apply Methods in Javascript ?

What is Prototype in Javascript ?

What is Promise in Javascript ?

How to Handle Exceptions in JavaScript ?

What is Code Smell in Javascript ?