You are not logged in.

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

shakeel123
User RankUser RankUser RankUser RankUser RankUser Rank
Moderator
Registered: 2017-09-21
Posts: 50,796

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


Top Exams Quizzes MCQs And Interview Questions With Answers Forum:
https://www.globalguideline.com/forum/

2017-12-08 05:30:01

Advertisement
Ads By Google

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



\n

Board footer