Which of the following is a JavaScript array method for sorting the elements in an array?
A. reverse()
B. sort()
C. splice()
D. None of the above
Answer:B
Which of the following is a JavaScript array method for sorting the elements in an array?
A. reverse() B. sort() C. splice() D. None of the above