[SOLVED] Adding createButton() causes an error

Switching the order of the script tags in the HTML solved this…
p5 needed to come before the dom…

<script src="https://discourse.processing.org/p5js/p5.min.js"></script>
<script src="https://discourse.processing.org/p5js/p5.dom.min.js"></script>
3 Likes