Hi!

I have a question regarding [Build a Library project ]

( https://www.codecademy.com/paths/web-development/tracks/webdev-intermediate-javascript/modules/learn-javascript-classes/projects/build-a-library).

Task 25, where you are asked to make sure input is between 1 and 5 in `.addRating()`

. We are advise to use the Math.max() and Math.min() functions. I read the documentation but I don’t know how to implement them. I also find this code:

```
function getMaxOfArray(numArray) {
return Math.max.apply(null, numArray);
}
```

but I don’t know how to implement this in my case. Can anyone explain this to me?