Really, Chrome’s web browser console is the fastest way to go.
If you wanted something like how you run python codes, or run it in a command line, you can use Node.js with bash or any choice of your command line. but really, the fastest way to see if a code works is to open up your browser, right click-inspect, go to console, type in your code, and press enter.
