Vidyalelo
JavaScript · Q22

Basic And Variables

Programming · JavaScript · question 22

Q22

A function definition expression can be called

A.
Function prototype
B.
Function literal
Answer
C.
Function definition
D.
Function declaration

Answer: Option B

Solution

Answer: Option B
Solution:
A function definition expression is a “function literal” in the same way that an object initializer is an “object literal.” A Function definition expression typically consists of the keyword function followed by a comma-separated list of zero or more identifiers (the parameter names) in parentheses and a block of JavaScript code (the function body) in curly braces.