MCPcopy Create free account
hub / github.com/CleverProgrammers/JavaScript-Course-by-Clever-Programmer- / double

Function double

playground.js:220–227  ·  view source on GitHub ↗
(numbers)

Source from the content-addressed store, hash-verified

218// }
219
220const double = (numbers) => {
221 let result = []
222 for (const number of numbers) {
223 result.push(number * 2)
224 }
225
226 return result
227}
228
229// console.log(double([1, 2, 3, 4, 5, 6]))
230

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected