Q. Which function is used to sort the elements of an array?
β
Correct Answer: (A)
sort()
Explanation: sort() sorts the elements of an array in place and returns the array.