Generation

generate functionSat, 03 Jun 2023

ingresar calificaciones con un try y catch

Script function calificacion(a){ try{ if(a > 10 || a < 0) throw "Calificación no válida" else console.log(a) } catch(err){ console.log(err) } } calificacion(9)

Want to kickstart your project?Use the new AI Studio to create your code