CICLOS-VECTORES-ELEMENTO PROMPT.
ACTIVIDAD Mediante un elemento grafico prompt diligenciar 10 nombres con 10 edades, sacar el promedio de edades en un alert, se requieren 2 vectores 1 para nombres y otro para edades. Imprimir los nombres y las edades correspondientes y el promedio al final en un console actividad <! DOCTYPE html > < html lang = "es" > < head > < meta charset = "utf-8" /> < title > Nombres y Edades </ title > </ head > < body > < button id = "iniciar" > Comenzar </ button > < script > document . getElementById ( 'iniciar' ). addEventListener ( 'click' , function () { const nombres = []; const edades = []; let suma = 0 ; const total = 10 ; // Primero pedir los nombres for ( let i = 0 ; i < total ; i ++) { ...