function listacursos(curso1,curso2,curso3){
let curso1=[{
Ide: 154532,
nombre:'marketing digital basico',
duracion: '15 dias',
valor: 100000,
}];
let curso2=[{
Ide: 154533,
nombre:'diseño grafico basico',
duracion: '30 dias',
valor: 200000,
}];
let curso2={
Ide: 154534,
nombre:'animacion digital',
duracion:'35 dias',
valor: 180000,
};
}
setInterval(function(listacursos){
console.log('el nombre del curso es: '+curso2.nombre)
},3000);**strong text**
I am trying to create a program that lists me every variable course in the function "listacursos" but I see error as if the variable was not being declared, I have tried everything because it has to show a message with the information of each course in a period of time of 2 seconds, I know how to do the time delay but I can not make the impression with the console.log.
This is the error that the cmd shows me enter image description here