A. Prints an exception errorPrints an exception error

B. Prints an overflow error Prints an overflow error

C. Displays “Infinity”Displays “Infinity”

D. Prints the value as suchPrints the value as such

Explanation

When the result of a numeric operation is larger than the largest representable number (overflow), the result is a special infinity value, which JavaScript prints as Infinity. Similarly, when a negative value becomes larger than the largest representable negative number, the result is negative infinity, printed as -Infinity. The infinite values behave as you would expect: adding, subtracting, multiplying, or dividing them by anything results in an infinite value (possibly with the sign reversed.

Division by zero is not an error in JavaScript: it simply returns infinity or negative infinity. There is one exception, however: zero divided by zero does not have a welldefined value, and the result of this operation is the special not-a-number value, printed as NaN.

A. Identifier and ParanthesesIdentifier and Parantheses

B. Return type and IdentifierReturn type and Identifier

C. Return type, Function keyword, Identifier and ParanthesesReturn type, Function keyword, Identifier and Parantheses

D. Identifier and Return typeIdentifier and Return type

Explanation

The function definitions begin with the keyword function followed by an identifier that names the function and a pair of parantheses around a comma-separated list of zero or more identifiers.

A. When the function is defined as a looping statementWhen the function is defined as a looping statement

B. When the function is defined as expressions When the function is defined as expressions

C. When the function is predefined When the function is predefined

D. All of the above All of the above

Explanation

The function name is optional for functions defined as expressions. A function declaration statement actually declares a variable and assigns a function object to it.