Posts by wdaniel • 91 points
2 posts
-
9
votes1
answer74
viewsQ: A function created within another function is created with each call or persisted by reference?
In the call for the declaration const minhaFuncao = fora(), i am storing the function execution result fora, that in this case would be the function dentro in minhaFuncao. In this case, am I…
-
0
votes2
answers57
viewsQ: Why, in addition to printing the expected result, console.log also prints Undefined?
I am following an example of a course and I was left with the doubt of why, in this code: function area(largura, altura) { const area = largura * altura; if(area > 20) { console.log(`Valor acima…