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

JavaScript How To Find The Average Of 10 Numbers Using A While Lo ...

JavaScript Adding Elements to Array

What are Different Error Types in Javascript ?

What is Alert Method in Window Object in Javascript ?

What is Window Object in Javascript ?