Coding Challenge #120: Bit Shifting

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



Duration: 17:52
42,468 views
1,009


In this coding challenge, I talk about bitwise operations, and more specifically, bit shifting. Code: https://thecodingtrain.com/challenges/120-bit-shifting

πŸ•ΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/Hk8CVYvi7

πŸŽ₯ Previous video: https://youtu.be/meGcdIoTYgw?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
πŸ“½ The Modulo Operator with Golan Levin: https://www.youtube.com/watch?v=r5Iy3v1co0A

Videos:
πŸ”΄ Coding Train Live 157: https://youtu.be/jSzmac4Rri8?t=6520s

Related Coding Challenges:
πŸš‚ #119 Binary to Decimal Conversion: https://youtu.be/meGcdIoTYgw
πŸš‚ #117 Seven-Segment Display: https://youtu.be/MlRlgbrAVOs

Timestamps:
0:00 Hello!
1:07 What is bit-shifting?
4:23 Let's start implementing
6:49 A function to shift bits
7:55 implementing decimal to binary conversion
14:46 We can now bit shift!
15:51 Inverting the colors
16:59 Thank you for watching!

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 #math #p5js #javascript







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
coding challenge
coding train
creative coding
code challenge
creative coding tutorials
coding train coding challenge
bitwise javascript
bitwise
bit masking
bit shifting
bit
base 2
radix