How do you run JavaScript script through the Terminal?

前端 未结 16 1804
离开以前
离开以前 2020-12-02 04:00

For instance, if you were to run a Python script you would type python filename.py or if you wanted to run a C program make filename then ./ filename

16条回答
  •  醉话见心
    2020-12-02 04:23

    This is a "roundabout" solution but you could use ipython

    Start ipython notebook from terminal:

    $ ipython notebook

    It will open in a browser where you can run the javascript

提交回复
热议问题