String.prototype.toUpperCase() Method in String Class of Javascript Syntax with Examples
2249 Views
Usage
The toUpperCase() method convert string value to uppercase.
Syntax
String.toUpperCase()
Example:
var s1 = 'hello';
var s2 = 'Hello';
var s3 = 'hElLo';
document.write(s1.toUpperCase());
document.write(s2.toUpperCase());
document.write(s3.toUpperCase());