Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. A function definition expression can be called

  2. A.

     Function prototype

    B.

     Function literal

    C.

     Function definition

    D.

     Function declaration

    View Answer

    Workspace

    Answer : Option 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.


Be The First To Comment