R

Ram Sharma • 193.86K Points
Coach

Q. What does the following JavaScript code snippet do?

Code:
data.sort(function(a,b),b-a);
  • (A) Sort in reverse numerical order
  • (B) Sort in reverse alphabetical order
  • (C) Sort in the chronological order
  • (D) Sort in the alphabetical order
  • Correct Answer - Option(A)
  • Views: 202
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics