Created
August 9, 2024 23:47
-
-
Save zapaiamarce/8532bec4c43d8f618f15cfbd7fb5d2bc to your computer and use it in GitHub Desktop.
Desafio playlist n0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mi-playlist.js | |
const miPlaylist = [ | |
{ | |
titulo: "Una lista ordenada de datos", | |
url: "https://www.youtube.com/watch?v=Ac7_qK6OJEs&t=2s", | |
resumen: "En este video vamos a introducirnos al concepto de arrays en JavaScript.", | |
tags: ["JavaScript", "Arrays", "Programacion", "Apx"], | |
visto: true, | |
dificultad: 3 | |
}, | |
{ | |
titulo: "Introducción a las Funciones", | |
url: "https://www.youtube.com/watch?v=j0X1myyjL4w", | |
resumen: "Explora el concepto de funciones en JavaScript, cómo se declaran y cómo se utilizan.", | |
tags: ["JavaScript", "Funciones", "Programacion", "Apx"], | |
visto: false, | |
dificultad: 2 | |
}, | |
{ | |
titulo: "Entendiendo las Promesas", | |
url: "https://www.youtube.com/watch?v=s6SH72uAn3Q", | |
resumen: "Aprende sobre las promesas en JavaScript, su sintaxis y cómo manejan la asincronía.", | |
tags: ["JavaScript", "Promesas", "Asincronía", "Apx"], | |
visto: true, | |
dificultad: 4 | |
}, | |
{ | |
titulo: "Programación Orientada a Objetos", | |
url: "https://www.youtube.com/watch?v=PFmuCDHHpwk", | |
resumen: "Descubre los fundamentos de la programación orientada a objetos en JavaScript.", | |
tags: ["JavaScript", "POO", "Programacion", "Apx"], | |
visto: false, | |
dificultad: 5 | |
}, | |
{ | |
titulo: "Manejo de Errores en JavaScript", | |
url: "https://www.youtube.com/watch?v=CrKdDoA94ks", | |
resumen: "Aprende cómo manejar errores en JavaScript utilizando try/catch y otros mecanismos.", | |
tags: ["JavaScript", "Errores", "Depuración", "Apx"], | |
visto: true, | |
dificultad: 3 | |
} | |
]; | |
// Reporte | |
// Número total de videos | |
console.log("Total de videos en la playlist:", miPlaylist.length); | |
// Datos del primer video | |
console.log("Primer video - Título:", miPlaylist[0].titulo); | |
console.log("Primer video - URL:", miPlaylist[0].url); | |
console.log("Primer video - Resumen:", miPlaylist[0].resumen); | |
// Datos del último video | |
const ultimoVideo = miPlaylist[miPlaylist.length - 1]; | |
console.log("Último video - Título:", ultimoVideo.titulo); | |
console.log("Último video - URL:", ultimoVideo.url); | |
console.log("Último video - Resumen:", ultimoVideo.resumen); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment