MCPcopy Create free account
hub / github.com/Open-Bootcamp/JavaScript-Basico / obtenArray

Function obtenArray

sesion-12-intro-depuracion/index.js:16–24  ·  view source on GitHub ↗
(edad)

Source from the content-addressed store, hash-verified

14console.log(dobleEdad)
15
16function obtenArray(edad) {
17 let arrayNums = []
18 for (let i = 0; i < 10; i++) {
19 const numero = edad + i
20 console.log(numero)
21 arrayNums = [...arrayNums, numero]
22 }
23 return arrayNums
24}
25
26const array = obtenArray(persona.edad)
27

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected