where did I go wrong?
function hasPassingGrade(score) {
if (score <= 100 && >=59) {
return true;
} else {
return false;
}
console.log(hasPassingGrade(100));
console.log(hasPassingGrade(53));
console.log(hasPassingGrade(87));
where did I go wrong?
function hasPassingGrade(score) {
if (score <= 100 && >=59) {
return true;
} else {
return false;
}
console.log(hasPassingGrade(100));
console.log(hasPassingGrade(53));
console.log(hasPassingGrade(87));
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.
Hi @waylon
This is for step 3.
The hasPassingGrade function is missing a closing curly brace.
Then look carefully at the editor to spot the syntax error.
Happy coding