In this episode, I attempt to explain the concept of “Prototype” in the JavaScript programming language. I also create a Butterfly Generator inspired by Katie Rose Pipkin’s moth generator (

*I misspoke during the introduction of the butterfly generator: Katie Rose Pipkin is referred to with the pronouns they/them/their. This portion has been re-recorded for the edited tutorial.

3:14 – Presenting today’s topic
22:32 – Prototypes in JavaScript
57:11 – Butterfly Wings Generator

Support this channel on Patreon:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
Douglas Crockford’s video on prototypes(and many more subjects):
Prototypes on MDN:
Katie Rose Pipkin’s moth generator:
Katie’s website:
Rose (mathematics):
My video on Polar Coordinates:
My playlist on Perlin Noise:
This Dot Song:

Source Code for the all Video Lessons:


For an Introduction to Programming:
For my Nature of Code videos:
For More Live Streams:
For More Coding Challenges:

Help us caption & translate this video!