?
Consider the following code snippet
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?
let succ = function(x) x+1, yes = function() true, no = function() false;
Answer & Solution
Correct Answer:
Option
A
The functions defined in this way behave exactly like functions defined with curly braces and the return keyword.
Join the Discussion
Login to post a comment or share your explanation.
Login