diff --git a/booklist.js b/booklist.js index 1494af6..fafd746 100644 --- a/booklist.js +++ b/booklist.js @@ -15,7 +15,7 @@ const displayUsingApi = false; }) } - function makeListItem(book) { + function makeListItem (book) { const a = `

${book.title}

` const li = `
  • ${a}Author: ${book.author}
  • ` console.log(li) diff --git a/ebooks/book.js b/ebooks/book.js index b7ed353..0456844 100644 --- a/ebooks/book.js +++ b/ebooks/book.js @@ -46,7 +46,7 @@ console.log(localStorage.getItem('booklist')) }) - function removeBook() { + function removeBook () { const newlist = JSON.parse(localStorage.getItem('booklist')) delete newlist[bookId] localStorage.setItem('booklist', JSON.stringify(newlist))