Consider the following code snippet:
const numbers = [3, 1, 5, 2, 4];
numbers.sort((a, b) => a - b);
console.log(numbers);
What will be the output of the console.log statement?
Consider the following code snippet:
const numbers = [3, 1, 5, 2, 4];
numbers.sort((a, b) => a - b);
console.log(numbers);
What will be the output of the console.log statement?