Solved

Identify a Compare Function That Sorts Numeric Values in Descending

Question 61

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