title: Build a slider based on the data returned from API call
body: <p>Need to build a slider (carousel) which should be based on the data returned from the API call. There are 3 values which I need to pull. <code>image</code>, <code>title</code> and <code>description</code>.</p>
  
  <p>It must be a <code>picture</code>, <code>heading</code>, and <code>description</code> (on each slide, pulled from JSON).</p>
  
  <p>jQuery</p>
  
  <pre><code>var myJSON = 'apiCall';
  $.getJSON('myJSON, { get_param: 'value' }, function(data) {
      $.each(data, function(index, element) {
          $('body').append($('&lt;img&gt;', {  
          }));
      });
  });
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>   &lt;div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel"&gt;
               &lt;ol class="carousel-indicators"&gt;
                 &lt;li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"&gt;&lt;/li&gt;
      &lt;li data-target="#carouselExampleIndicators" data-slide-to="1"&gt;&lt;/li&gt;
      &lt;li data-target="#carouselExampleIndicators" data-slide-to="2"&gt;&lt;/li&gt;
    &lt;/ol&gt;
    &lt;div class="carousel-inner"&gt;
      &lt;div class="carousel-item active"&gt;
        &lt;img class="d-block w-80" src="..." alt="First slide"&gt;
          &lt;div class="carousel-caption d-none d-md-block"&gt;
           &lt;h5&gt;&lt;/h5&gt;
           &lt;p&gt;&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="carousel-item"&gt;
        &lt;img class="d-block w-80" src="..." alt="Second slide"&gt;
          &lt;div class="carousel-caption d-none d-md-block"&gt;
           &lt;h5&gt;&lt;/h5&gt;
           &lt;p&gt;&lt;/p&gt;
          &lt;/div&gt;
    &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="carousel-item"&gt;
        &lt;img class="d-block w-80" src="..." alt="Third slide"&gt;
         &lt;div class="carousel-caption d-none d-md-block"&gt;
           &lt;h5&gt;&lt;/h5&gt;
           &lt;p&gt;&lt;/p&gt;
         &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev"&gt;
      &lt;span class="carousel-control-prev-icon" aria-hidden="true"&gt;&lt;/span&gt;
      &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
    &lt;/a&gt;
    &lt;a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next"&gt;
      &lt;span class="carousel-control-next-icon" aria-hidden="true"&gt;&lt;/span&gt;
      &lt;span class="sr-only"&gt;Next&lt;/span&gt;
    &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>