Math 物件提供數學常數與函式,使用前不需要 new。
Math.PI; // 圓周率 Math.abs(-3); // 3
常用方法包含 abs、ceil、floor、round、random、max、min、pow、sqrt 等,適合作為查詢表。