Skip to content

Instantly share code, notes, and snippets.

@k2works
Last active April 1, 2020 03:15
Show Gist options
  • Save k2works/56835ed397add0408211b52d56decc92 to your computer and use it in GitHub Desktop.
Save k2works/56835ed397add0408211b52d56decc92 to your computer and use it in GitHub Desktop.
Node TDD Startter
const assert = require("assert");
try {
assert.strictEqual(5, add(2, 2));
console.log("ok");
} catch (err) {
console.log(err);
}
function add(a, b) {
sum = a + b;
return sum;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment