It depends on where your game is supposed to run on. A web browser? Mobile devices? A desktop computer? Once you've decided on these details, it will be easier to determine which language would be suitable.
• Programming Languages for
Game Design — https://www.gamedesigning.org/career/programming-languages/