What value is printed when executing the following code?
const arr = ['a', 'C', 'b'];
arr.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()));
console.log(arr[2]);
What value is printed when executing the following code?
const arr = ['a', 'C', 'b'];
arr.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()));
console.log(arr[2]);