title: insert script tag Uncaught SyntaxError: Unexpected identifier
body: <p>when I try to run the following code, I get the error:</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected identifier
  </code></pre>
  
  <p>Why?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var script = document.createElement("script");
  script.type = "text/javascript";
  script.innerHTML="var time = setInterval(flower, 100); var flower01=document.getElementById("flowerContainerDiv"); function flower(){if(flower01.parentNode!==null) flower01.parentNode.removeChild(flower01);}";
  var head = document.getElementsByTagName("head");
  head[0].appendChild(script);</code></pre>
  </div>
  </div>
  </p>