Those 2 keywords are JS features, and p5.js, which is a frontend library, can’t change that:
As I have already mentioned to you on your previous forum thread:
B/c they don’t even acknowledge ECMA Script Modules (ESM / “.mjs”) exist anywhere on their docs, it’s no wonder their “p5.js Web Editor” doesn’t seem to be compatible w/ ESM either!
Pretty much any other JS code hosting/editor solution available should work!