Serenity Operating System
at hosted 12 lines 282 B view raw
1try { 2 assert(Math.min.length === 2); 3 assert(Math.min(1) === 1); 4 assert(Math.min(2, 1) === 1); 5 assert(Math.min(1, 2, 3) === 1); 6 assert(isNaN(Math.min(NaN))); 7 assert(isNaN(Math.min("String", 1))); 8 9 console.log("PASS"); 10} catch { 11 console.log("FAIL"); 12}