Static methods


Who can help me out with this exercise step 7? Here is the instruction.

Here is my answer. There is an error but I can’t figure out where it is exactly.

Here is the link for the whole exercise.


In a class body there are no semi-colons on method bodies. Otherwise the code looks fine.


Thank you so much. It works now after the semi-colon has been removed.


Aside, don’t be afraid to use a little whitespace around operators.

Math.random() * substituteTeachers.length

It has no meaning but lets the reader see what’s going on with more clarity.