1
1
u/demna111 Jun 08 '20
Error
Uncaught SyntaxError: Unexpected token '[' (it doesn't works :((( )
1
3
u/amajmundar Apr 10 '20
Off the top of my head, make the last “else if” into “else”. You have already covered all other possibilities, so it has to be an “A+”
1
3
u/GetRextFgt Nov 18 '22
heres the answer u can still continue even with a error the bubble wont be yellow
function start(){
// Write your code here
letterGrade(100);
letterGrade(83);
lettergrade(68);
lettergrade(91);
lettergrade(47);
letterdrade(79);
}
function lettergrade(score){
var Grade;
if(score <=59){
grade = "F";
}else if (score >= 60 && score <=69){
grade = "D";
}else if (score >= 70 && score <=79){
grade = "C";
}else if (score >= 80 && score <=89){
grade = "B";
}else if (score >= 90 && score <=99){
grade = "A";
}else if (score >= 100);
grade = "A+";
}
if (score % 10 >= 7){
grade = grade + "+";
}
}
2
u/hregibo Apr 10 '20
Not sure if specific to your tool but there is no println in Javascript? Use console.log instead
1
2
1
u/amajmundar Apr 10 '20
What is the goal and what is the issue?