Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/learning-zone/nodejs-basics
/ add
Function
add
nodejs-basics/assert.js:10–12 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
8
// Example: 01
9
var
assert = require(
'assert'
);
10
function
add (a, b) {
11
return
a + b;
12
}
13
var
expected = add(10, 20);
14
assert( expected === 30,
'Test Pass'
);
15
Callers
1
assert.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected