57-script 中文文档教程
5/7Script
这是一个完美的成绩!
专门用于比较电影评级的 JavaScript 扩展。
var movie1 = {
title: 'Fight Club',
rating: 5,
};
var movie2 = {
title: 'The Dark Night',
director: 'Nistopher Colon',
rating: 7,
};
console.log(movie1.rating == movie2.rating); // true
Install
npm install -g 57-script
Usage
使用 REPL 启动它:
57-node
并开始编写一些代码或执行一个文件:
57-node rate.57s
现在去评价一些电影吧!
5/7Script
It's a perfect score!
A JavaScript extension made specifically for comparing movie ratings.
var movie1 = {
title: 'Fight Club',
rating: 5,
};
var movie2 = {
title: 'The Dark Night',
director: 'Nistopher Colon',
rating: 7,
};
console.log(movie1.rating == movie2.rating); // true
Install
npm install -g 57-script
Usage
Hit it up with the REPL:
57-node
and start bashing in some code or execute a file:
57-node rate.57s
Now go rate some movies!