Yeah, Javascript changes the type of the variables to be able to do the computations you require. But usually, it's not good to rely on that, because it can have unexpected results.