C
Christopher Benson-Manica
<html>
<head>
<script>
var s=String( 'foo' );
alert( s );
s.bar='bar';
alert( s.bar );
</script></head></html>
Why does the second alert produce 'undefined'? Are string objects
somehow special?
<head>
<script>
var s=String( 'foo' );
alert( s );
s.bar='bar';
alert( s.bar );
</script></head></html>
Why does the second alert produce 'undefined'? Are string objects
somehow special?