title: Passing Javascript variable into textbox
body: <p>I have a variable called totalScore:</p>
  
  <pre><code>totalScore = '&lt;h2&gt;Total Score: ' + parseInt(parseFloat(scorePrompt) +
                                                          parseFloat(scorePrompt2) +
                                                          parseFloat(scorePrompt3) +
                                                          parseFloat(scorePrompt4) +
                                                          parseFloat(scorePrompt5) +
                                                          '&lt;/h2&gt;');
  </code></pre>
  
  <p>I need to pass the number stored inside totalScore to a textbox. I have not found a way to pass a variable to an html element, sorry if I am missing something very obvious I am new to javascript.</p>