Home / Programming MCQs / JavaScript MCQs / Question

M

Mr. Dubey • 51.43K Points
Coach

Q. Consider the following code snippet
let succ = function(x) x+1, yes = function() true, no = function() false;
What convenience does the above code snippet provide?

(A) Functional behaviour
(B) Modular behaviour
(C) No convenience
(D) Shorthand expression
Explanation by: Mr. Dubey
The functions defined in this way behave exactly like functions defined with curly braces and the return keyword.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.