title: Uncaught ReferenceError : Invalid left-hand side in assignment
body: <p>I'm trying to make a survey, and with each click, assign a variable a certain phrase. Then display it in the <code>div</code> when I click <code> span#display </code>.
  I get the "Uncaught ReferenceError: Invalid left-hand side in assignment" when I run this code:</p>
  
  <pre><code>var a = "none chosen";
  function companyPicka()
              {
                  a= "I love Valve";
              } 
              function companyPickb()
              {
                  a= "I love Bethesda";
              } 
              function companyPickc()
              {
                  a= "I love EA";
              } 
              function companyPickd()
              {
                  a= "I love Ubisoft";
              } 
              function companyPicke()
              {
                  a= "I play terrible NES, SNES games";
              } 
              function companyPickf()
              {
                  a= "I like something that's so underground I wouldn't expect  you to know it";
              }
  function display()
              {
                  document.getElementById("display") = "a+''+b+''+c+''+d+''+e+''+f+''+g+''+h";
              }
  
  
  &lt;div&gt;
                  &lt;span onclick="companyPicka(); this.style.border='inset';"&gt;
                  Valve &amp;#60;3&lt;/span&gt; 
                  &lt;span onclick="companyPickb(); this.style.border='inset';"&gt; 
                  Bethesda :\ &lt;/span&gt;
                  &lt;span onclick="companyPickc(); this.style.border='inset';"&gt;
                  EA &lt;/span&gt;
                  &lt;span onclick="companyPickd(); this.style.border='inset';"&gt; 
                  Ubisoft &lt;/span&gt;
                  &lt;span onclick="companyPicke(); this.style.border='inset';"&gt;
                  LJN&lt;/span&gt;
                  &lt;span onclick="companyPickf(); this.style.border='inset';"&gt;
                  Other&lt;/span&gt;
              &lt;/div&gt;
  
  &lt;span onclick="display();"&gt; See Results &lt;/span&gt;
              &lt;div id="display"&gt;
              &lt;/div&gt;
  </code></pre>