title: Why all my loops don`t work?
body: <p><a href="http://jsfiddle.net/VaAlina/oupmd0hf/" rel="nofollow">http://jsfiddle.net/VaAlina/oupmd0hf/</a></p>
  
  <p>Commented code don`t work.
  Area next to bomb is green. Yellow - bombs. Blue - emptiness .</p>
  
  <p>I want to replace this kind of code-></p>
  
  <pre><code>var dangerItem1 = "#" + danger1;//Replace thise code to commented
  var dangerItem2 = "#" + danger2;
  var dangerItem3 = "#" + danger3;
  var dangerItem4 = "#" + danger4;
  </code></pre>
  
  <p>With this-></p>
  
  <pre><code>/*
  for(var j = 0; j &lt; 4; j++){
      var dangerItem+j = "#" + danger+j;
  }
  */
  </code></pre>
  
  <p>Where is the mistake?</p>