> A web browser and javascript is fine too.
There seem to be many online environments where you can type your {html, css, javascript} code and run it. For example, MDN has one at
https://developer.mozilla.org/en-US/play
(Unfortunately it has advertisements... which I suppose is incentive to learn how to use custom stylesheets.)
I wish there were an offline environment like that built into firefox. You can bring up a javascript console, but it's not really a friendly development environment. And something like visual studio code is capable but large and complicated.
Unfortunately for javascript in browsers, the browser DOM is complicated and unwieldy. It's hard for beginners to figure out the right subset/features of (html, css, javascript, DOM) that they could use to create simple apps and games.