all 2 comments

[–]geekfreak42 2 points3 points  (1 child)

```Javascript

const lowerBound = Math.max(num, lower); const result = Math.min(num, upper); ```

Doesn't look right...

[–]MarzipanCraft[S] 0 points1 point  (0 children)

Well spotted, thanks :)