Skip to content
Advertisement

Fix the int convert and add a return for a class [closed]

I have a code done but has a couple of issues that need to be fixed, however, I tried many different ways is not work, could anyone give me some help here?

My error parts are total = getScore; and return total;

… means no worry I am sure those are not necessary and correct

JavaScript

Advertisement

Answer

Your function getScore() should be of type int.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement