I spent 2 hours at night to use Javascript to process a simple string filtering function. The code is pasted below. It is actually very simple. I just want to remove Filter out.
A very important reason why it takes so much time is that I am not familiar with the character concatenation operation of JavaScript. JS does not support =, so you need to use a=a 'b'. In fact, this problem is very simple when you think about it, but I don't know why it took a lot of time.