Convert decimal to binary using Javascript | Text to binary with code

Convert decimal to binary using Javascript | Text to binary with code

In the text-to-binary video, we saw how to go from text, to character codes, to binary numerals.
In this video, we are going to see how this works behind the scenes using JavaScript.

Understanding how we can go from text to binary is pretty straight forward after we understand how character encoding and positional numeral systems work.
Let’s see how to do this in code.

Discussion of String.charCodeAt is here –

Prerequisites videos:
Numerical data explained –
Textual data explained –
*Unicode explained –
Numeral vs Number –
**Binary vs Decimal –
Hexadecimal explained –
5 Patterns with Numbers –

* Character encoding
** Positional numeral systems

Related video:
Is your name also a number? –

Notebook –

Follow deeplizard:

Support deeplizard on Patreon:

Checkout products deeplizard suggests on Amazon:

Support deeplizard by browsing with Brave:

Support deeplizard with crypto:
Bitcoin: 1AFgm3fLTiG5pNPgnfkKdsktgxLCMYpxCN
Litecoin: LTZ2AUGpDmFm85y89PFFvVR5QmfX6Rfzg3
Ether: 0x9105cd0ecbc921ad19f6d5f9dd249735da8269ef

Recommended books on AI:
The Most Human Human: What Artificial Intelligence Teaches Us About Being Alive:
Life 3.0: Being Human in the Age of Artificial Intelligence

Data Science –
Machine Learning –
Keras –

Chillin Hard by Kevin MacLeod
Thinking Music by Kevin MacLeod
Investigations by Kevin MacLeod
Licensed under Creative Commons: By Attribution 3.0 License


Just a figment of your imagination.