Does JavaScript create Objects of Variables I create ( Like be it String, Number etc. Except creating Object Variable itself)

Viewed 37

I have this question in mind since I started learning JavaScript last month.

What I have tried?: I researched for it online almost on all good sites but didn't get satisfactory answer in laymans language.

Question: When I create variable let suppose

let name = "mit"
name.toUpperCase()

I am using dot notation to access the method here and I know we use it for something in object. I was confused if the browser creates different object for name variable (which is of string data type here) or what?

0 Answers
Related