Change value of a wrapped primitive data type

var test = new Boolean(0)
test.prop = "OK!"

Can you change the value of test to true?

but test.prop should still be "OK!"

in other words, test should be the same object

7
задан Carlos Gil 1 November 2010 в 01:49
поделиться