Front End Programmer Question:

Explain what is an anonymous function?

Tweet Share WhatsApp

Answer:

Anonymous functions are functions without a name. They are stored in a variable and are automatically invoked (called) using the variable name.


var x = function(a, b) {
console.log(a * b)
}

x(3, 5); // 15

Download Front End Developer PDF Read All 67 Front End Developer Questions
Previous QuestionNext Question
Explain what is AJAX? Write an AJAX call?Explain why table-less layout is very important?