MCPcopy 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
15const double = (a) => a * 2;
16
17// Returning an object
18const createObj = () => ({

Callers 1

script.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected