Skip to content
7 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Add math helpers, tests and checks1const assert = require("node:assert");
2const math = require("./math");
Add subtract to math.js3assert.strictEqual(math.subtract(5, 3), 2);
Add math helpers, tests and checks4
5assert.strictEqual(math.add(2, 3), 5);
6if (math.multiply) assert.strictEqual(math.multiply(4, 5), 20);
7console.log("all tests passed");