JavaScript Getting Started With ES2015 Create Functions Using Arrow Syntax Review JavaScript Arrow Functions

What is the answer to question 4 of 5? const remove = (string.letter) => { let regex = new RegExp(letter, '

const remove = (string.letter) => { let regex = new RegExp(letter, 'g'); return string.replace(regex,''); }

1 Answer

Steven Parker
Steven Parker
203,731 Points

You're close, but instead of a period, the parameters should be separated by a comma (,).