i am a newbie to Js.
I am reading an book and it says that a string object created like this
var stringObj = new String();
contains string methods like .topUpperCase
etc..
but i see that primitive string also contains that..
eg.
var primitive = 'Hello';
console.log(primitive.toUpperCase());
var stringObj = new String();
stringObj = "halo";
console.log(stringObj.toUpperCase());
So why is this? i mean is this because of the wrapper objects on primitives.. And is there any use of creating string Obect. thanks.