Mar 21 in JavaScript
Q: In JavaScript, what will be used for calling the function definition expression:

a) Function prototype

b) Function literal

c) Function calling

d) Function declaration

1 Answer

0 votes
Mar 21

Answer: B

Reason: A function definition expression is a kind of "function literal' just like as the object initializer is a kind of "object literal". The function definition expression (or we can say a function literal) consists of the keyword Function, followed by the set of identifiers(or parameters names) that are separated by commas inside the parenthesis, and a small block of JavaScript code(which we normally called function body/definition) enclosed in the curly braces.

Related questions

0 votes
Sep 18 in JavaScript
0 votes
Oct 19, 2019 in JavaScript
...