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...
On this page of the site you can watch the video online JS Bitwise Operators and Binary Numbers with a duration of hours minute second in good quality, which was uploaded by the user Steve Griffith - Prof3ssorSt3v3 25 October 2017, share the link with friends and acquaintances, this video has already been watched 10,583 times on youtube and it was liked by 384 viewers. Enjoy your viewing!