1 & 1 == 1
0 & 1 == 0
function xy(degrees, radius) {
const radians = degrees * Math.PI / 180;
return {x: radius * Math.cos(radians), y: radius * Math.sin(radians)};
}
xy(100, 5) // { x: -0.8682408883346515, y: 4.92403876506104 }
Math.sin()
и товарищи принимают углы в радианах. var radians = gradus * Math.PI/180;
if (A < B && C > B) {
value = A + B - 1
} else if (A == null && C < B) {
value = (C + B) * 2
}