Q. Which function is used to sort an array in ascending order by value?
β
Correct Answer: (A)
sort()
Explanation: sort() sorts an array in ascending order according to the values.