Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bradtraversy/javascript-sandbox
/ double
Function
double
03-functions-scope/07-arrow-functions/script.js:15–15 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
13
14
// Can leave off () with a single param
15
const
double = (a) => a * 2;
16
17
// Returning an object
18
const
createObj = () => ({
Callers
1
script.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected