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...
En esta página del sitio puede ver el video en línea JS Bitwise Operators and Binary Numbers de Duración hora minuto segunda en buena calidad , que subió el usuario Steve Griffith - Prof3ssorSt3v3 25 octubre 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 10,583 veces y le gustó 384 a los espectadores. Disfruta viendo!