0 votes
in JavaScript by
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
by

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
asked Mar 22, 2021 in JavaScript by Robindeniel
0 votes
asked Oct 19, 2019 in JavaScript by SakshiSharma
...