MCPcopy Index your code
hub / github.com/mouredev/hello-javascript / sumWithSpread

Function sumWithSpread

Intermediate/00-advanced-functions.js:72–74  ·  view source on GitHub ↗
(a, b, c)

Source from the content-addressed store, hash-verified

70
71const numbers = [1, 2, 3]
72function sumWithSpread(a, b, c) {
73 return a + b + c
74}
75
76console.log(sumWithSpread(1, 2, 3)) // Sin Spread
77console.log(sumWithSpread(...numbers)) // Con Spread

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected