+ 1
Hello everyone. Another dead end with the code. I can't figure out what the error is?
var score = parseInt(readLine(), 10) /* 88 and above => excellent 40-87 => good 0-39 => fail */ var x = 88; var y = 40; var z = 39; if (score <= z){console.log("fail")} else if (y <= score && score < x ){console.log("good")} else (score >= x) {console.log("exelent")}; // ваш код
3 Respuestas
+ 2
`else` does not accept any condition.
And make sure you are printing the output as the task required of you. A different letter case ('fail' vs 'Fail') is a common problem that many had experienced.
+ 1
Thank you. My English is bad. The error was in the word 'excellent' VS 'exelent'. I am not attentive and illiterate
+ 1
Just remember this, in anticipation of the next tasks, we learn by making mistakes, but it's okay we're only humans 👌