?
Consider the following code snippet
Consider the following code snippet
data.sort(function(a,b),b-a);
What does the above code do?
data.sort(function(a,b),b-a);
Answer & Solution
Correct Answer:
Option
D
The above code snippet sorts an array in reverse numerical order.
Join the Discussion
Login to post a comment or share your explanation.
Login