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 are Deferred Scripts in Javascript ?

JavaScript Using For Loop

What is Difference Between Javascript and ECMAScript ?

What are the Variable Naming Conventions in JavaScript ?

What is Difference Between Undefined and Null in Javascript ?