title: Error: "missing ; before statement"
body: <p>I am making a simple program to assist with answering a certain type of question i get for history homework. The code is meant to search through the question, find any <em>_</em>_s, and fill them in with your input for each one. I get a "missing ; before statement" error on line 5, however. Help?</p>
  
  <pre><code>var Que = prompt("Insert your completion question");
  var Leng = Que.length;
  for (var i = 0; i &lt;= Leng; i+=1){
    if (Que.substring(i,i + 4) === "____"){
        var newword = prompt Que.substring(0, i + 4);
        Que.replace("____", newword);
        if (newword.length !== 4){
            var i = newword.length - 4 + i;
        }
    }
  }
  console.log(Que);
  </code></pre>