What's missing in this code?
func('3quick 1brown 2fox'); // brown fox quick
func('apple1 orange3 banana2'); // apple banana orange
func('c3at a1nother d2og'); // another dog cat
func('2js ht1ml css3'); // html js css
func('apple1 orange3 banana2'); // apple banana orange
func('c3at a1nother d2og'); // another dog cat
function func(sentence) {
const list = sentence.split(' ');
const list2 = list.
((a, b) =>
const process = (str) => parseInt(str.match(
)[0]);
return process(a) - process(b);
});
return list2
.map((item) => item.replace(
, ''))
.
(' ');
}
Type or select from these options