0 votes
in JavaScript by
What happens if the return statement has no related expression?

a) It will return a undefined value

b) It will throw a exception

c) It will return the 0 as the value

d) It will throw a error

1 Answer

0 votes
by

Answer: A

Reason: Suppose a function that does not have a return statement in its definition returns a default value. Although the return statement is mentioned in the definition, but not associated with the expression, then it will return the value known as "undefined."

...