If you want to have a browser game JavaScript would be good as it is the standard based gaming coding language, and because it is built directly on the browser. Java also has a large community so you can probably find references easily. C, C#, C++, and Java are good candidates too, but they tend to be used in more complex games like Smash Bros.
But if you don't care about browser games, personally I would use Python because it is simple even though it doesn't work on the browser too well and it is beginner friendly. You could also try GD script the native language for Godot.
Overall, you should just do what you feel comforstable doing. :)