A

Admin • 833K Points
Coach

Q. What is the default behavior of the sort() method?

  • (A) Sorts as strings
  • (B) Sorts numerically
  • (C) Random sort
  • (D) Descending order
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

sort() converts elements to strings and sorts lexicographically.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.