Open john-terenzio opened 6 years ago
https://github.com/Myeishamadkins/Myeisha-Madkins-Web-Rental-Agency/blob/4cc49c921210162b09f7bcc6dd2c697b7dda1d27/javascript.js#L7-L13
Instead of creating a new object with the exact same keys as PAGE_DATA.moviePosters[i] consider just passing that directly to the template like content += template(PAGE_DATA.moviePosters[i]);...
PAGE_DATA.moviePosters[i]
content += template(PAGE_DATA.moviePosters[i]);
https://github.com/Myeishamadkins/Myeisha-Madkins-Web-Rental-Agency/blob/4cc49c921210162b09f7bcc6dd2c697b7dda1d27/javascript.js#L7-L13
Instead of creating a new object with the exact same keys as
PAGE_DATA.moviePosters[i]
consider just passing that directly to the template likecontent += template(PAGE_DATA.moviePosters[i]);
...