liste objets javascript code example

Example: listar objetos javascript

libros = ["Brideshead", "Faustus", "Musica"]

function libro(titulo, autor, ISBN) {

    this.titulo = titulo;
    this.autor = autor;
    this.ISBN = ISBN;
    //this.isbn calculo
}

var Brideshead  =  new libro("Retorno a Brideshead", "Evelyn Waugh", 8447308472);
var Faustus = new libro("Doctor Faustus", "Thomas Mann", 9788435018449);
var  Musica = new libro("Una música constante", "Vikram Seth", 9780767904643)
console.log(Object.values(Brideshead))