<script src="https://cdn.jsdelivr.net/npm/@vkontakte/vk-bridge@2.0.8/dist/index.umd.js"></script>
<script>
const bridge = vkBridge.default;
bridge.subscribe((e) => console.log("vkBridge event", e));
bridge.send("VKWebAppInit", {});
</script> 1 & 1 == 10 & 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
}