showing results for - "sin in javascript"
Mike
30 Nov 2019
1Math.sin(Math.PI / 2);//it uses radians, pi/2 = 90 degrees, output:1
2//make a function 
3const DegToRad = num => {return num * Math.PI / 180;};
4Math.sin(DegToRad(90));//now its easy to read, output still 1
5