The point of this is to attach multiple tags (example: sci-fi, aliens, spaceships) when a user registers a new book, and chooses from an already existing set of tags. There is more to this but for simplification purposes this is all I ask. For example, can the property tags have multiple values, like be an array, so I can access them after?
Like the tags you put on a question when you ask it here.
class Book{
constructor(title, cover, autor, tags){
this.title = title;
this.cover = cover;
this.autor = autor;
this.tags = tags;
}
new Book()you could pass in any data type you like.