function createElement(prodInfo) {
  let product = `
    <div class="product">
      <div class="product__div-imgWrapper">
        <img src="${prodInfo.image}" alt="${prodInfo.title}" class="product__img" width="250" />
      </div>
      <p class="product__p-title">${prodInfo.title}</p>
      <div class="product__div-priceBtnWrapper">
        <p class="product__p-price">$${prodInfo.price.toFixed(2)}</p>
        <button class="product__btn-addToCart">Add to Cart</button>
      </div>
    </div>
  `;
  return product;
}
/**
 * Creates an HTML string for the product that is given
 * @param {Object} prodInfo Object with product info straight from fetched array
 * @returns {String} A string with HTML content so it can be concatenated with
 *                   other similar objects for one singular .innerHTML call later
 */
Creates an HTML string for the product that is given
@param {Object} prodInfo Object with product info straight from fetched array
@returns {String} A string with HTML content so it can be concatenated with
other similar objects for one singular .innerHTML call later
Creates an HTML string for the product that is given @param { Object } prodInfo Object with product info straight from fetched array @returns { String } A string with HTML content so it can be concatenated with other similar objects for one singular . innerHTML call later
function createElement(prodInfo) {
  let product = `
    <div class="product">
      <div class="product__div-imgWrapper">
        <img src="${prodInfo.image}" alt="${prodInfo.title}" class="product__img" width="250" />
      </div>
      <p class="product__p-title">${prodInfo.title}</p>
      <div class="product__div-priceBtnWrapper">
        <p class="product__p-price">$${prodInfo.price.toFixed(2)}</p>
        <button class="product__btn-addToCart">Add to Cart</button>
      </div>
    </div>
  `;
  return product;
}
function createElement ( prodInfo ) { let product = ` ${ prodInfo . image } ${ prodInfo . title } ${ prodInfo . title } ${ prodInfo . price . toFixed ( 2 ) } ` ; return product ; }
Creates an HTML string for the product that is given
 @param {Object} prodInfo Object with product info straight from fetched array
 @returns {String} A string with HTML content so it can be concatenated with
                   other similar objects for one singular .innerHTML call later
Creates an HTML string for the product that is given @param { Object } prodInfo Object with product info straight from fetched array @returns { String } A string with HTML content so it can be concatenated with other similar objects for one singular . innerHTML call later