Just a note on terminology... You're not talking about the DOM here, but rather core JavaScript. String, Number, Array, and all those kinds of types are part of core JavaScript. The DOM is stuff like document.getElementById().
> Overall, in JS DOM, one needs to mindful that storing a > number can be view as a string. Without thinking deeping of > what you are saying as a flaw, jQuery, because of things > like this and other things I came across in the past 2+ > weeks, it has pretty much force me to take a step back and > study the DOM and the JS OOPS framework. > > Basically, in short, there a String variables and there are > String objects as illustrated here: > > s1 = "Stephan"; > s2 = new String("Stephan"); > console.log(s1.valueOf()); > console.log(s2.valueOf()); > > As you can see in DOM, s1 and s2 are fundamentally different, > but both can be used as "strings". s2 is a basically a class > object, but as you see above when you begin to access s1, JS > will automagically type case it as a String object allowing > you to use String methods as well.