Need help making a projectile

[PROJECT CODE]
hello, as the title says, I need help to make a projectile.
I’ve been stuck on how to make the projectile move, as changing it with javascript does not do anything.
Please try to answer this in Javascript as I don’t want to add unnecessary files.

Thanks in advance.