Math.max(d1, d2, d3, ... , di);
But what would you do if you have your numbers stored in an array and you want to find maximum of them? Math.max doesn’t take array as an argument.
If you have any ideas please share below in comments. I came up with this quick hack:
You can try this hack on any function that takes arguments in similar manner. Enjoy!