πŸ“Š JavaScript
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Sort in reverse numerical order

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
249
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
87%
Success Rate