📅  最后修改于: 2022-03-11 15:01:26.661000             🧑  作者: Mango
Math.sin(Math.PI / 2);//it uses radians, pi/2 = 90 degrees, output:1
//make a function
const DegToRad = num => {return num * Math.PI / 180;};
Math.sin(DegToRad(90));//now its easy to read, output still 1