I learn course Full-Stack engineer! But i can’t complete once task.
finalGrade()
Instructions
1.
Write a function, finalGrade()
. It should:
- take three arguments of type number
- find the
average
of those three numbers - return the letter grade (as a string) that the
average
corresponds to - return ‘You have entered an invalid grade.’ if any of the three grades are less than 0 or greater than 100
0-59 should return: 'F'
60-69 should return: 'D'
70-79 should return: 'C'
80-89 should return: 'B'
90-100 should return: 'A'
HELP ME PLEASE!
i try complete it for a week!