Questions tagged as 'função-anônima'

5
answers

How do anonymous functions work?

I know they are functions that do not have the specified name, but what is the purpose? Is recursion possible with anonymous functions? Ex: Fibonacci sequence. (function(x, y) { alert(x + y); })(5, 5); // Função para somar duas v...
asked by 20.03.2014 / 16:23