A function definition expression can be called as __________

Ngoc Hue

New member
A function definition expression can be called as __________
A. Function prototype
B. Function literal
C. Function calling
D. Function declaration
 
Answer: b
Explanation: 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.
 

Tìm kiếm

Back
Top