Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript toString method

var str = new String("OnePiece");
console.log(str.toString()); //OnePiece

//it returns a string representing the calling object.
//The toString() method does not change the original string.
//The toString() method can be used to convert a string object into a string.
 
PREVIOUS NEXT
Tagged: #javascript #toString #method
ADD COMMENT
Topic
Name
1+7 =