Multiple Choice
Identify a compare function that sorts numeric values in ascending order.
A) function ascending(a, b) { return a - b; }
B) function ascending(b, a) { return a; }
C) function ascending(a, b) { return b - a; }
D) function ascending(b, a) { return b; }
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Identify a method that is used to
Q12: Describe the structure of the if else
Q13: Identify a method that extracts array items
Q14: By default,items are placed in an array
Q24: Identify the syntax of the statement label.<br>A)
Q26: Identify a true statement of array.some(callback [,thisArg])method.<br>A)
Q44: The <u>map(callback [,thisArg])</u>method returns the index of
Q59: Index values start with 1 so that
Q75: A calendar that is created as a
Q89: The every(callback [,thisArg])array method applies the callback