I almost couldn’t finish because there was a bug in this exercise. It has 2 test verifications, one for failing the course and the other for passing, but it only provides the code for failing, that is:
console.log(studentMsg([92, 88, 12, 77, 57, 100, 67, 38, 97, 89], 37));
It is missing the test validation for passing the course at the end of the exercise, that is:
console.log(studentMsg([56, 23, 89, 42, 75, 11, 68, 34, 91, 19], 100));
I managed to finish because I detected the error messages, but other people will not get it.
Your functions must always work for any inputs, not just the one single example that happens to be in the editor.
you can add this other one yourself if you need for debugging: the tests test the function itself, not function calls present in the editor