title: Javascript add +1 to string
body: <p>I have a variable that stores a innerHTML text in it</p>
  
  <pre><code>var text = document.getElementById("textID").innerHTML; // &lt;-- textID is actually a number
  </code></pre>
  
  <p>The "text" is actually just a number but I guess javascript still thinks it's a string.</p>
  
  <p>I want to add + 1 to the variable text, but it just adds a new letter instead of increasing the number</p>
  
  <p><strong>For example : 0 + 1 = 01 --> 01 + 1 = 011 and so on...</strong></p>
  
  <p>Here's the code I tried this with:</p>
  
  <pre><code>text = text + 1;
  </code></pre>
  
  <p><strong>How can I make it so it increases the number instead of adding new letters? (1+1 = 2, etc)</strong></p>