title: Looping through an array assigning values to anchor links
body: <p>I have an array that looks like this
  <code>["1352.jpg", "1353.jpg", "1354"]</code>. I want to loop through this array and render anchor links of items comma-separated. I am looking at something like this, <code>&lt;a href='1352.jpg'&gt;1352.jpg&lt;/a&gt;, &lt;a href='1353.jpg'&gt;1353.jpg&lt;/a&gt;, etc</code>. I can't seem to get this to work. This is what I am doing but I am not getting what I want. </p>
  
  <pre><code>var images = ["1352.jpg", "1353.jpg", "1354"];
  renderImages(images){
          var result;
          if(images != null &amp;&amp; images.length &gt; 0){
              result = images.map(obj =&gt; {
                  var res = '&lt;a href='+obj+'&gt;obj&lt;/a&gt;';
              });
              result = res.join(', ');
          }else{
               result = 'null';
          }
          return result;
      }
  </code></pre>
  
  <p>Please what am I doing wrong here?</p>