JavaScript中Math.min()小于Math.max()的结果是什么?

1 min read

Math.min() 和 Math.max() 的用法是找出一串数字中的最小值和最大值。因此,Math.min() < Math.max() 的结果永远是 true,除非没有传入参数。这是因为最小值一定不能大于最大值。