Eventually you will come across a situation where you would prefer to work with the raw binary data than the Strings, Booleans, and Numbers you see daily in your variables.
TypedArrays are a fairly new way that you can work with chunks of binary data.
Another set of useful commands for manipulating binary data are the Bitwise Operators
AND &
OR |
XOR ^
NOT ~
shift left <<
shift right >>
This video covers all these operators plus a few practical examples of why and how you would implement them.
UPDATE: As part of ES6, you can now write your numbers as binary.
Eg: 0b11 - is the same as decimal 3
0b10 - is the same as decimal 2
let sum = 0b11 + 0b10; // sum would hold the value 5.
Feel free to download the Code GIST and follow along.
Code GIST: https://gist.github.com/prof3ssorSt3v...
Nesta página do site você pode assistir ao vídeo on-line JS Bitwise Operators and Binary Numbers duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Steve Griffith - Prof3ssorSt3v3 25 Outubro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 10,583 vezes e gostou 384 espectadores. Boa visualização!