Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
String.prototype.toString() Method in String Class of Javascript Syntax with Examples
2255 Views
Syntax 
StringObject.toString()
Example
var x = new String('Welcome to Javascript');

document.write(x.toString());
document.write(typeof x.toString());
document.write(typeof x);
Output 
Welcome to Javascript
string
object
Usage 
The toString() method used to return string value of a String object.
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