什么是JavaScript中的按位右移运算符(>>)?
左操作数的值向右移动右操作数指定的位数。
示例
您可以尝试运行以下代码以了解如何使用按位右移运算符-
<html>
<body>
<script>
var a = 2; // Bit presentation 10
var b = 3; // Bit presentation 11
document.write("(a >> b) => ");
result = (a >> b);
document.write(result);
</script>
</body>
</html>热门推荐
10 广西考试祝福语结婚简短
11 猪年祝福语简短小孩
12 元旦祝福语送长辈简短
13 恭喜二宝祝福语简短
14 祝福语暖心话简短
15 国庆中秋祝福语简短兄弟
16 朋友订婚的祝福语简短
17 送弟弟中秋祝福语简短
18 爱生日祝福语简短独特