Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
String.prototype.length Property in String Class of Javascript Syntax with Examples
2210 Views
Usage 
String.prototype.length property returns the number of characters in the string.
Syntax 
StringObject.length
Example
var name1 = "Play";
document.write(name1);

var name2 = "Cricket";
document.write(name2);

var name3 = "Laya";
document.write(name3);
Output 
4
7
4
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