In JavaScript everything is object like String literal, numbers, Object... And properties can be added to objects dynamically also, but I am adding property to object which refer to string then it seems it is not working Following is JS code which I am running
var aVar = "some string";
console.log(aVar);
aVar.name = 'raj';
console.log(aVar.name);
Output...
hi some string undefined