Answers for "js stringConstructor type"

0

js stringConstructor type

var str = "foo";
str.prop = "bar";
alert(str.prop); // undefined

var str = new String("foo");
str.prop = "bar";
alert(str.prop); // "bar"
Posted by: Guest on November-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language