Daniel Shiffman’s Youtube channel The Coding Train is AMAZING and a great resource for p5.js programming, mainly for creative coding/generative art, but also some machine learning, working with data and APIs, etc.
The Nature of Code playlist is particularly good. It’s about re-creating natural movements and phenomena in p5, e.g. flow fields, fractals, physics simulations, genetic networks. Here are my notes of going through the playlist.