Posts by Gustavo • 1 point
1 post
-
-2
votes2
answers37
viewsQ: How can I better log in memory allocation behavior using recursiveness in this example?
const yourself = { count: 0, fibonacci(n) { this.count++; **console.log(`${this.count}º vez - ${n}`);** if (n === 0 || n === 1) { return n; } else { return this.fibonacci(n - 1) + this.fibonacci(n -…
javascriptasked Gustavo 1