Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #stringConstructor #type
ADD COMMENT
Topic
Name
9+8 =