Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bradtraversy/javascript-sandbox
/ add
Function
add
03-functions-scope/01-function-basics/script.js:10–12 ·
view source on GitHub ↗
(num1, num2)
Source
from the content-addressed store, hash-verified
8
9
// Define a function with parameters
10
function
add(num1, num2) {
11
console.log(num1 + num2);
12
}
13
14
// Invoke function with arguments
15
add(5, 10);
Callers
1
script.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected