Additional Topics

Tutorial #9: P5.JS Tutorial

This is part 9 of the p5.js tutorials. Other additional topics about JavaScript and p5.js are covered here.

The native JavaScript functions setTimeout and setInterval are covered. I also explore the concept of a JavaScript closure. What does it mean to define a function inside a function and how is that useful?