首先打开linux的终端输入如下代码:node
$ touch file.jslinux
$sudo gedit file.jscode
进入gedit编辑页面后输入要实现的js的代码it
console.log("hello world")
后在终端输入代码行console
$node file.jsclass