.content and noiseWords are the arrays which consist of strings. My aim is to remove noiseWords from content. Both content and noiseWords are not global variables. Can I access noiseWords in the word()? Is line 4 correct? If not, then how can I access noiseWord inside word()?
word(content){
// this function remove noiseWords from the Content
//and then return the content
noiseWords.split(/\s+/).map((w) =>
normalize(w));//line4
}
addNoiseWords(noiseWords){
//this function consists noisewords
}