I have a questions base on previous questions here.
There I'm using Python to do that, but now I want to convert the code to Javascript code.
So basically my questions there are, let's say I have an array like this:
job_list = ['assistant manager', 'salesperson', 'doctor', 'production manager', 'sales manager', 'schoolteacher', 'mathematics teacher']
And now I want to search with multiple keywords in my array, e.g:
When I try to input the keyword teacher and sales, it should return result like this:
- schoolteacher
- mathematics teacher
- salesperson
- sales manager
So, how to do that in Javascript?