Posts by Reubber • 85 points
2 posts
-
2
votes2
answers65
viewsQ: pq the function add this being interpreted before your scope statement?
While testing some Javascript features in learning I came across the following problem, when executing this code I could not understand why the addition function did not trigger an error and it was…
javascriptasked Reubber 85 -
6
votes2
answers110
viewsQ: What’s the difference of foreach(function) and foreach(function())? Why does the first work and the second does not?
error: Undefined is not a Function const heros = ['visage', 'enchant', 'lone'] const nome = 'reubber' function dotinha(nome) { return console.log(`'heroi é: ${nome}`) } /*heros.forEach(dotinha)…
javascriptasked Reubber 85