You are not logged in.

#1 2017-12-08 05:30:03

hamidoon123
Moderator
Registered: 2017-09-21
Posts: 50,766

Consider the following code snippet data.sort(function(a,b),b-a);...

Software Engineering Exams Quizzes MCQs Quizzes JavaScript Online MCQs Test

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

Option A):
Sort in the alphabetical order
Option B):
Sort in reverse numerical order
Option C):
Sort in reverse alphabetical order
Option D):
Sort in the chronological order

Correct Answer is Option B):
Sort in reverse numerical order

2017-12-08 05:30:03

Advertisement
Ads By Google

Re: Consider the following code snippet data.sort(function(a,b),b-a);...



\n

Board footer