Serenity Operating System
1try {
2 assert(Math.max.length === 2);
3 assert(Math.max() === -Infinity);
4 assert(Math.max(1) === 1);
5 assert(Math.max(2, 1) === 2);
6 assert(Math.max(1, 2, 3) === 3);
7 assert(isNaN(Math.max(NaN)));
8 assert(isNaN(Math.max("String", 1)));
9
10 console.log("PASS");
11} catch {
12 console.log("FAIL");
13}