Posts by Isaac Ferreira • 21 points
1 post
-
2
votes2
answers857
viewsA: Calling a function with the variable name
Instead of passing the function name, pass its reference. For example, const minhaFuncao = () => console.log('minhaFuncao foi executada!'); const chamarQualquerFuncao = (funcaoASerChamada) =>…
javascriptanswered Isaac Ferreira 21