how do you correctly display an array?

To access members of a class use dot notation syntax.

contenido += "<div id=d"+posicion+">Titulo: "+serie.titulo+"<br> Temática: "+serie.tematica+" <br> Actor Favorito: "+serie.actoresPrincipales+" <br> Actores: "+serie.actores+" <br><br>";

Also, inside the method generaActorFavorito in this statment arrayActores = actoresPrincipales[calc] you’re reassigning an array to be a value which makes no sense, you can simply do var arrayActores; instead of var arrayActores = new Array();

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top