Does the behaviour of javascript is the same as in Java, which works with a String constant pool?
In other terms, when I use:
switch(foo){
case 'baby': break
case 'bacoco': break
}
… does a new instance created for 'baby' (and maybe for 'bacoco') each time the program runs the switch cases?
And also a new one when it runs:
if('baby' === otherfoo){}
Thanks for answers.