Example: var Mystr=new String();
You can assign a value to the string object when the object is created, by supplying it in the brackets.
Alternately, you can assign the value to the string object like this:
var Mystr=new String();
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages: