Static methods


#1

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

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

Here is the link for the whole exercise.
https://www.codecademy.com/courses/introduction-to-javascript/projects/school-catalog


#2

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


#3

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


#4

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.