The .sort() method sorts arrays in place. By default it sorts as strings, so you need a compare function for numbers!
names alphabetically (default sort is fine)prices numerically using (a, b) => a - b as the compare functionsortedNames and sortedPricesSubmit your code to see test results