What's missing in this code?
func("I love the bookkeeper's skills.");
// ['bookkeeper', 'skills']
func('I have a good feeling about this.');
// ['good', 'feeling']
func('The letter arrived at noon.');
// ['letter', 'noon']
func('Will the Ball fall?');
// ['Will', 'Ball', 'fall']
function func(text) {
const regex = /
(
)
\b/g;
const words = text.match(regex);
return words || [];
}
Type or select from these options