title: How to append text to all values of javascript Array
body: <p>Basically, I need to convert a string </p>
  
  <pre><code>"23423,1616,3461743,1345" 
  </code></pre>
  
  <p>to a string </p>
  
  <pre><code>"&lt;img src='23423'&gt;&lt;/img&gt;&lt;img src='1616'&gt;&lt;/img&gt;&lt;img src='3461743'&gt;&lt;/img&gt;&lt;img src='1345'&gt;&lt;/img&gt;
  </code></pre>
  
  <p>So far I have tried:</p>
  
  <pre><code>    var PhotoArray=JSONeventobject.Events[i].FileNameArray.split(","); // Just convert this string to array
  
      for (i = 0; i &lt; PhotoArray.length; i++) {
          PhotoArray[i] = "&lt;img src='"+PhotoArray[i]+"&lt;/img&gt;";
      }
  
  
              var Photostring = PhotoArray.toString().replace(",", "")
  </code></pre>
  
  <p>But this causes my browser to crash. It makes sense to me :/</p>