js/main.js
// clear the zombie and house divs

clear the zombie and house divs
clear the zombie and house divs
function clearDivs() {
  var cleareZombieDiv = document.getElementById("zombieDiv");
  var cleareHouseDiv = document.getElementById("houseDiv");
  while (cleareZombieDiv.hasChildNodes()) {
    cleareZombieDiv.removeChild(cleareZombieDiv.lastChild);
  }
  while (cleareHouseDiv.hasChildNodes()) {
    cleareHouseDiv.removeChild(cleareHouseDiv.lastChild);
  }
}
function clearDivs ( ) { var cleareZombieDiv = document . getElementById ( "zombieDiv" ) ; var cleareHouseDiv = document . getElementById ( "houseDiv" ) ; while ( cleareZombieDiv . hasChildNodes ( ) ) { cleareZombieDiv . removeChild ( cleareZombieDiv . lastChild ) ; } while ( cleareHouseDiv . hasChildNodes ( ) ) { cleareHouseDiv . removeChild ( cleareHouseDiv . lastChild ) ; } }
clear the zombie and house divs
clear the zombie and house divs