30-Days-Of-JavaScript icon indicating copy to clipboard operation
30-Days-Of-JavaScript copied to clipboard

Typo on Exercice 2 of Day4

Open malikito1998 opened this issue 2 years ago • 2 comments

Grading for B should be, between 70-79, other logic breaks.

Excerp: Exercises: Level 2 Write a code which can give grades to students according to theirs scores: 80-100, A 70-89, B

malikito1998 avatar May 26 '22 20:05 malikito1998

This make sense to me!

I opened #360 to solve this. 🙂

lucalves avatar Jun 07 '22 13:06 lucalves

Grading for B should be, between 70-79, other logic breaks.

Excerp: Exercises: Level 2 Write a code which can give grades to students according to theirs scores: 80-100, A 70-89, B

if(grade_variable >=80 || grade_variable <=100){ score_variable = 'A'; }else if(grade_variable >=70 || grade_variable <=89){ score_variable='B'; }

it's that the answer you looking for ?

DevDario avatar Aug 04 '22 01:08 DevDario