Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
String.prototype.toUpperCase() Method in String Class of Javascript Syntax with Examples
2270 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());
Output 
HELLO
HELLO
HELLO
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details