In this coding challenge, I attempt to create a version of the classic one-line Commodore 64 BASIC program in JavaScript using p5.js. This coding challenge is inspired by the book 10 PRINT ( Amazon: )

10 PRINT CHR$(205.5+RND(1)); : GOTO 10

Fun Fact: The C64 character set is called PETSCII, from the prior Commodore Pet. It’s interesting because unlike ASCII, it’s full of graphics:

Support this channel on Patreon:
To buy Coding Train merchandise:
To Support the Processing Foundation:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
Book link on Amazon:
Sol Lewitt’s Wall Drawings:

Source Code for the all Video Lessons:


For More Programming with Text videos:
For More Coding Challenges:
For an Intro to Programming using p5.js:

Help us caption & translate this video!