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

Consider the following code snippet
data.sort(function(a,b),b-a);
What does the above code do?

Answer & Solution
Correct Answer: Option D
The above code snippet sorts an array in reverse numerical order.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.