Coding Challenge #119: Binary to Decimal Conversion

Subscribers:
1,750,000
Published on ● Video Link: https://www.youtube.com/watch?v=meGcdIoTYgw



Duration: 28:51
35,406 views
1,004


This coding challenge is an exploration of binary numbers with p5.js. Watch me build an interactive sketch that converts binary to decimal numbers! Code: https://thecodingtrain.com/challenges/119-binary-to-decimal-conversion

đŸ•šī¸ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/HJn1hOPjX

đŸŽĨ Next video: https://youtu.be/oCBlwsY8sR4?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đŸŽĨ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
📝 Ternary Operator: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator

Videos:
🔴 Livestream Archive: https://youtu.be/jSzmac4Rri8?t=4261s

Related Coding Challenges:
🚂 #117 Seven-Segment Display: https://youtu.be/MlRlgbrAVOs
🚂 #120 Bit Shifting: https://youtu.be/oCBlwsY8sR4

Timestamps:
0:00 Introduction
1:08 Understanding the base of a number system
6:11 Built-in helper functions for base conversion in JavaScript
7:24 Let's code our own converter!
7:52 Bits and bytes
14:39 Making a visual representation
22:31 Let's make this interactive!
26:12 The ternary operator
27:04 We did it!
27:24 Make something creative!

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
đŸ’Ŧ Discord: https://thecodingtrain.com/discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
đŸ–‹ī¸ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/

đŸŽĨ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
đŸŽĨ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#binarynumbers #baseconversion #math #javascript #p5js







Tags:
binary number
math game
binary game
binary to decimal
computer science
decimal to binary
binary conversion
base 10
decimal to binary conversion
binary numbers
binary to decimal conversion
programming
daniel shiffman
tutorial
coding
the coding train
lissajous
coding challenge
coding train
creative coding
live stream
code challenge
creative coding tutorials
coding train coding challenge
bitwise javascript
bitwise
bit masking
bit shifting
bit