Array And Function(Javascript ) Questions and Answers
Explanation:-
Answer: Option B. -> When the function is defined as expressionsThe function name is optional for functions defined as expressions. A function declaration statement actually declares a variable and assigns a function object to it.
Explanation:-
Answer: Option A. -> Identifier and ParanthesesThe function definitions begin with the keyword function followed by an identifier that names the function and a pair of parantheses around a comma-separated list of zero or more identifiers.
Explanation:-
Answer: Option A. -> Yes, perfectlyFunction name is optional for functions defined as expressions. Function expressions are sometimes defined and immediately invoked.
Explanation:-
Answer: Option A. -> o.m=m.f;A method is nothing more than a JavaScript function that is stored in a property of an object. If you have a function f and an object o, you can define a method named m of o with the following line:
o.m = f;