The advice I would give is to first learn the basics of programming (logic, conditions, loops, functions…) and then you can use any language like JavaScript or Java to use p5js and/or Processing depending on your needs.
The Coding Train’s video are awesome to get started with Processing: