DEV Community

Discussion on: JavaScript Quiz Question #1: Array Sort Comparison

Collapse
 
nas5w profile image
Nick Scialli (he/him)

Which part of the question is misleading? Can you quote it here so I can fix it?

Collapse
 
quoll profile image
Paula Gearon

Sorry... my wording was probably unclear. I mean that it's a trick question. It has red herrings in it.

The misleading nature is where you state: "...in various sorting conditions?"
This misleads the reader since sorting is irrelevant here. The only real relevance is that the sort() method returns the original array object.