parseInt and vars acting like strings
<p>So Im trying to learn javascript - still pretty basic.</p>

<p>Im doing something like this</p>

<pre><code>function add(amount) {
      // number is 9
     var number = parseInt($("#id").attr("number"));

     number = number + amount;
}
</code></pre>

<p>this makes the number a string - is there any way I can 'define' stuff so it knows its a integer so everything doesnt flood over in parseInts in all my functions?</p>
