Menu

Error Next Line 3 Says Unexpected Token Q43795393

The error next to line 3 says there is an “Unexpected token”,being “<“Instructions Tests passes: 1 failures: 2 duration: 0.02s 100% curveGrades() ✓ should exist X should increment each value in t

Instructions Tests passes: 1 failures: 2 duration: 0.02s 100% curveGrades() ✓ should exist X should increment each value in the input object by 10 1 function curveGrades (grades) { 2 // YOUR CODE BELOW HERE // 3 for (var i = 0; i < myGrades.length, i ++) { 4 if(my Grades[i] > 100) { myGrades[i] + 10; 6 } else { 7 myGrades[i] += 10; 8 } 9 // YOUR CODE ABOVE HERE // 10 } AssertionError: expected { a: 10, b: 20, c: 30 } to deeply equal { a: 20, b: 30, c: 40 } should return the original grades object AssertionError: expected undefined to equal { a: 10, b: 20, c: 30 } Syntax error: line 3 Run Submit Auto-Run OFF Reset Show transcribed image text Instructions Tests passes: 1 failures: 2 duration: 0.02s 100% curveGrades() ✓ should exist X should increment each value in the input object by 10 1 function curveGrades (grades) { 2 // YOUR CODE BELOW HERE // 3 for (var i = 0; i 100) { myGrades[i] + 10; 6 } else { 7 myGrades[i] += 10; 8 } 9 // YOUR CODE ABOVE HERE // 10 } AssertionError: expected { a: 10, b: 20, c: 30 } to deeply equal { a: 20, b: 30, c: 40 } should return the original grades object AssertionError: expected undefined to equal { a: 10, b: 20, c: 30 } Syntax error: line 3 Run Submit Auto-Run OFF Reset

Expert Answer


Answer to The error next to line 3 says there is an “Unexpected token”, being “…

OR