Switch Case Javascript

Create a switch..case statement to check against highSchoolGrade within the switch statement. Then, within the case statements, set yourGrade to the appropriate string. Add your switch..case code to the provided updateGrade() function:in case 9, assign “Freshman” to the yourGrade variable
in case 10, assign “Sophomore” to the yourGrade variable
in case 11, assign “Junior” to the yourGrade variable
in case 12, assign “Senior” to the yourGrade variable
include a default case that assigns “Invalid” to yourGrade.

×
New Download