首页 > 什么是 javascript shell

什么是 javascript shell

《数据结构与算法JavaScript描述》读这本书的时候,需要个javascript shell 环境,但是根据书中的链接下的却是火狐浏览器。

我想知道什么是 javascript shell

我最初的想法是用chrome的控制台代替。书中有些例子中有 putstr() 方法 还是想亲手调试下。

请前辈指点。


一般就是指chrome下的console控制台吧!


浏览器的 Console 和 Node.js REPL 都可以算 JavaScript Shell.

然后你可以用 console.log 打印几乎所有的东西。


比如 spidermoney 就可以直接在终端中使用。

shell$ js -h
JavaScript-C 1.8.5 2011-03-31
usage: js [options] [scriptfile] [scriptarg...]

$ js
js> print("hello world")
hello world
js> _

node.js 也行。

【热门文章】
【热门文章】