Buenas tardes
Me llamo Ana Belén, necesito ayuda con el este ejercicio;
Revise los fundamentos de JavaScript mediante la creación de una aplicación de libro de calificaciones: paso 4
Este es mi código, lo revisé muchas veces y me da error
function studentMsg(totalScores, studentScore) {
let courseResult = “Aprobaste el curso”
if(!hasPassingGrade(studentScore)) {
courseResult = “Reprobaste el curso.”
}
return "Promedio de la clase: " + getAverage(totalScores) + ". Tu calificación: " + getGrade(studentScore) + ". " + courseResult
}
console.log(studentMsg([92, 88, 12, 77, 57, 100, 67, 38, 97, 89], 37));
Me pone de error:
Su llamada a la función studentMsg([56, 23, 89, 42, 75, 11, 68, 34, 91, 19], 100) debería devolver el siguiente mensaje: “Promedio de la clase: 50.8. Su calificación: A++. Aprobó el curso.”.
Por favor, podéis decir dónde está el fallo.
Muchas gracias
The message has to be in English and contain the exact asked for words.
Also, when I formatted your code it had some incorrect quotation marks for “Aprobaste el curso”
and “Reprobaste el curso.”
so make sure you use standard double "
or single '
quotes.
When I fix the language and quotation marks your code passes the tests.
For future reference:
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.
The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
Thank you.
Good morning
I have already solved it.
Thank you so much.