Rust编写的JavaScript引擎,该项目是一个试验性质的项目。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
//load module |
|
let calc = require("./scripts/calc.js"); |
|
|
|
console.log("Using calc module"); |
|
console.log("Add: " + calc.add(3, 3)); |
|
console.log("Subtract: " + calc.subtract(3, 3)); |
|
console.log("Multiply: " + calc.multiply(3, 3)); |
|
console.log("Divide: " + calc.divide(3, 3));
|
|
|