Quiz: Sorting Numbers

What does this program print?

const scores = [10, 9, 1];
const sorted = scores.sort();
console.log(sorted);
console.log(scores);

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

Back

8/10

Next