How to make a launcher for a javascript game so that it is not launched by the browser?

You were able to write JavaScript code for Unity, but I believe it is disappearing.

The problem with JavaScript is that you use the browser to interpret your code and display your HTML output. It does not offer native graphics calls, etc.

Most JavaScript game engines are designed to work in a browser because of the benefits that this brings.

You can certainly write c ++ code that will be compiled into an application and can make native opengl calls, etc. Or work with game engines such as unreal