JavaScript
If you'd like, copy/paste the following comments into yourmain.jsfile to help you complete each of the above tasks.
//create an array 5 arrays//each inner array should contain a name and a number grade//create a function called getGrade with a parameter of value//inside the function, create an if/else statement that accounts for grades and values from F to A//create a for loop that iterates through the length of the students array and increments by 1 with each loop//inside the for loop, use document.write to output a string of text that reads like the following example://David's number grade is 80 and letter grade is a B
Your final output should look like this...
Lesson 7 Project
David's number grade is 80 and letter grade is a BVictor's number grade is 77 and letter grade is a CTracey's number grade is 55 and letter grade is a FJason's number grade is 95 and letter grade is a ARaymond's number grade is 69 and letter grade is a D
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here