How js uses two-bit operators
This article mainly introduces js how to use the two-bit operator, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Two-bit operator
Bit operators are the basic knowledge points of the JavaScript introductory tutorial, but we don't often use bit operators. Because no one wants to use 1s and zeros without dealing with binaries.
But the two-bit operator has a very practical case. You can use the two-bit operator instead of Math.floor (). The advantage of the double no positioning operator is that it performs the same operation and runs faster.
/ / BadMath.floor (4.9) = = 4 / / true// Good~~4.9 = = 4 / / true Thank you for reading this article carefully. I hope the article "how to use the two-bit operator in js" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!