function populateCards() {
  let nameDivs = document.getElementsByClassName("name");
  let emailDivs = document.getElementsByClassName("email");
  let locationDivs = document.getElementsByClassName("location");
  let photoDivs = document.getElementsByClassName("cardPhoto");
  for (let i = 0; i < 12; i++) {
    let cardDetails = populateInfo(randomPeople[i]);
    nameDivs[i].innerHTML = cardDetails.name;
    emailDivs[i].innerHTML = cardDetails.email;
    if (emailDivs[i].innerHTML.length >= 28) {
      emailDivs[i].style.fontSize = "0.5rem";
    }
    locationDivs[i].innerHTML = cardDetails.location;
    photoDivs[i].src = cardDetails.photo;
  }
}
// the required fields using the 12 objects in the variable 'randomPeople'
the required fields using the 12 objects in the variable 'randomPeople'
the required fields using the 12 objects in the variable ' randomPeople '
function populateCards() {
  let nameDivs = document.getElementsByClassName("name");
  let emailDivs = document.getElementsByClassName("email");
  let locationDivs = document.getElementsByClassName("location");
  let photoDivs = document.getElementsByClassName("cardPhoto");
  for (let i = 0; i < 12; i++) {
    let cardDetails = populateInfo(randomPeople[i]);
    nameDivs[i].innerHTML = cardDetails.name;
    emailDivs[i].innerHTML = cardDetails.email;
    if (emailDivs[i].innerHTML.length >= 28) {
      emailDivs[i].style.fontSize = "0.5rem";
    }
    locationDivs[i].innerHTML = cardDetails.location;
    photoDivs[i].src = cardDetails.photo;
  }
}
function populateCards ( ) { let nameDivs = document . getElementsByClassName ( "name" ) ; let emailDivs = document . getElementsByClassName ( "email" ) ; let locationDivs = document . getElementsByClassName ( "location" ) ; let photoDivs = document . getElementsByClassName ( "cardPhoto" ) ; for ( let i = 0 ; i < 12 ; i ++ ) { let cardDetails = populateInfo ( randomPeople [ i ] ) ; nameDivs [ i ] . innerHTML = cardDetails . name ; emailDivs [ i ] . innerHTML = cardDetails . email ; if ( emailDivs [ i ] . innerHTML . length >= 28 ) { emailDivs [ i ] . style . fontSize = "0.5rem" ; } locationDivs [ i ] . innerHTML = cardDetails . location ; photoDivs [ i ] . src = cardDetails . photo ; } }
the required fields using the 12 objects in the variable 'randomPeople'
the required fields using the 12 objects in the variable ' randomPeople '