What's wrong here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's wrong here?

var score = parseInt(readLine(), 10) if(score => 88) console.log("excellent"); else if(score >= 40 && score < 88) console.log("good"); else console.log("fail"); /* 88 and above => excellent 40-87 => good 0-39 => fail */ // your code goes here

28th May 2022, 3:08 AM
Ifeanyi
Ifeanyi - avatar
1 Answer
+ 1
The if block should be like so if( score >= 88 )
28th May 2022, 3:13 AM
Ipang