October 8th, 2024
What's missing in this code?
find(
'The civic center is in level one of the rotor.'
); // ['civic', 'level', 'rotor']
find('Is this the test?'); // []
find('Eva, can I see bees in a cave?'); // ['i', 'a']
find('1221, Madam! 911 Wow.'); // ['1221', 'madam', 'wow']
function find(str) {
let words = str.toLowerCase().match(
);
const func = (word) =>
word === word.split('')
.join('');
return [
(words.filter(func))];
}
Type or select from these options