40.9k views
15 votes
What number will this code return?
Math.max(7, 5, 9);

1 Answer

7 votes
9

JavaScript’s Math module has a max method that finds the max of the given arguments.

I’m not sure how I can be any clearer
I’ve attached a screenshot if you still have no clue
What number will this code return? Math.max(7, 5, 9);-example-1
User Holstebroe
by
6.5k points