Front End Developer (AngularJS) Question:
Download Job Interview Questions and Answers PDF
Explain me what is an anonymous function?
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
var x = function(a, b) {
console.log(a * b)
}
x(3, 5); // 15
Download Front End Developer (AngularJS) Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me the difference between null and undefined? | Explain me what is stringify? |