0

I noticed that when you open the console and declare a string like this:

let foo = new Object('foo') its value is set as String {'foo'}

meanwhile, if you declare it like this: bar = 'bar' it's just set as 'bar'

from my understanding they seem to be behaving the same even though their types are different, so what are the differences between them?

gralmeidan
  • 51
  • 3

0 Answers0