Skip to content

Commit 0ab32ec

Browse files
committed
Fix 'property' Problem of the bookObject value
Fix 'property' Problem of the bookObject value
1 parent a60e3f5 commit 0ab32ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Week1/homework/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const bookObject = { //An object of books
221221
//2.5 & 2.7 -----------------------------------------------------------
222222

223223

224-
function createFieldsetOfBooksObject(){ //Create a fieldset of Books Object
224+
function createFieldsetOfBooksObject() { //Create a fieldset of Books Object
225225

226226
'use strict'
227227

@@ -232,7 +232,7 @@ function createFieldsetOfBooksObject(){ //Create a fieldset of Books Object
232232

233233

234234

235-
var legend=document.createElement( 'legend' ); //Create a legend for the fieldset
235+
var legend = document.createElement( 'legend' ); //Create a legend for the fieldset
236236

237237
legend.innerHTML = 'All book information';
238238

@@ -273,7 +273,7 @@ function createFieldsetOfBooksObject(){ //Create a fieldset of Books Object
273273

274274
var li = document.createElement( 'li' ); //Put every detail of the book in "LI". - title , language , author , date_of_publication -
275275

276-
li.innerHTML = property + ' : ' + bookObject[ bookTitles [ i ] ].property;
276+
li.innerHTML = property + ' : ' + bookObject[ bookTitles [ i ] ] [property] ;
277277

278278
ul.append( li );
279279

0 commit comments

Comments
 (0)