0

I created an Array:

var book = {title: "Ways to Go", pages: 280, bookMark1:"Page 20"};

and now I want to loop over the Array and log all properties:

function me {
i;
for ( i = 0; i < book.length ; i++ ) { 
console.log(i);
}
};

It logs "SyntaxError" but I don't understand where it is

Thanks

KR29
  • 369
  • 4
  • 18

0 Answers0