(edad)
| 14 | console.log(dobleEdad) |
| 15 | |
| 16 | function 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 | |
| 26 | const array = obtenArray(persona.edad) |
| 27 |