I would suggest you search online for “javascript video game development” or something similar. Making a game with javascript can be done in multiple ways, there is no “one size fits all” situation.
Having said that, there are video game engines that can compile a game to be played on a website, that can be a bit easier for someone learning how to make games.
Hope that helps