title: How can I write this PHP code in JavaScript
body: <p>How can I write this PHP code in JavaScript?</p>
  
  <p>I have no knowledge about JavaScript... :-s</p>
  
  <pre><code>&lt;?php
      $pozethumb=scandir("./pics/flori/thumbs");
      $size=count($pozethumb);
      $nrpoze=$size-2;                    
      for($i=2;$i&lt;$size;$i++)
      {
          echo"&lt;img src=\"./pics/flori/thumbs/$pozethumb[$i]\" class=\"thumb\" sou=\"$pozethumb[$i]\" /&gt;";
      }                    
  ?&gt;
  </code></pre>