()
| 79 | // Closures (Clausuras) |
| 80 | |
| 81 | function createCounter() { |
| 82 | let counter = 0 |
| 83 | return function () { |
| 84 | counter++ |
| 85 | console.log(`Contador: ${counter}`) |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | const counter = createCounter() |
| 90 | counter() |
no outgoing calls
no test coverage detected