function displayShelf() {
  while (shelf.childElementCount > 0) {
    shelf.removeChild(shelf.firstElementChild);
  }
  myLibrary.forEach((book) => renderBook(book));
}
// function that iterates through array of books and displays it on shelf
function that iterates through array of books and displays it on shelf
function that iterates through array of books and displays it on shelf
function displayShelf() {
  while (shelf.childElementCount > 0) {
    shelf.removeChild(shelf.firstElementChild);
  }
  myLibrary.forEach((book) => renderBook(book));
}
function displayShelf ( ) { while ( shelf . childElementCount > 0 ) { shelf . removeChild ( shelf . firstElementChild ) ; } myLibrary . forEach ( ( book ) => renderBook ( book ) ) ; }
function that iterates through array of books and displays it on shelf
function that iterates through array of books and displays it on shelf