ExamVeda
Login
Home
This question belongs to Javascript Classes And Modules
Classes and Modules
?

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?

Answer & Solution
Correct Answer: Option A
The functions defined in this way behave exactly like functions defined with curly braces and the return keyword.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.