I'm having trouble with a library project

So I'm doing a library project and I've been tackling it step by step. All the apps need to do is create book cards from user input and display them in a grid but I haven't been able to add them to my array.

Here's the codepen: https://codepen.io/norwyx/pen/rNbZOmE?editors=0011

A little bit of context: all the functions at the bottom are pure UI stuff so not that important. But at the top I have things like the Book object that has some default values inside the constructor and then the properties. The Library object with the books constructor (the array Im having problems with) and the helper functions suck as addBook, getBook, inLibrary, and removeBook.

But what I'm facing is that I'm able to correctly get the info from the form, and successfully create the object (check the console, I left a console.log). But then when I need to push it into the library.books array, it is not working and I'm not storing the object anywhere.

Help would be very appreciated since I've been trying stuff for 2 days and no shot, so now I need some help. Thanks in advance.
Was this page helpful?