πŸ“Š JavaScript
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Functional behaviour

Explanation: The functions defined in this way behave exactly like functions defined with curly braces and the return keyword.

Explanation by: Mr. Dubey
The functions defined in this way behave exactly like functions defined with curly braces and the return keyword.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
99
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate