Solved

Identify a Compare Function That Sorts Numeric Values in Descending

Question 11

Multiple Choice

Identify a compare function that sorts numeric values in descending order.


A) function descending(a, b) { return a - b; }
B) function descending(b, a) { return b; }
C) function descending(a, b) { return b - a; }
D) function descending(b, a) { return a; }

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions