I've experimented with JavaScript and noticed this strange thing:
var s = "hello world!";
s.x = 5;
console.log(s.x); //undefined
Every type of variable in JavaScript is inherited from object. So it should be possible to add new attributes to every object.
Did I misunderstand something wrong?