Not sure if this is the right place to put this but I'm kinda stuck
I have a task that I'd like to simplify by using js and I think I have the basic concept down.
In a nutshell, I need to compare a long list of strings vs another list of static strings that will not change.
I think I can accomplish this by creating an array, then having an input and then an if/else statement.
But the issue that I'm running into is the length of the list to cross check..
I can put the information into the array, that is not problem since it won't change but I'd like to be able to check more than one item at a time.
To give you some sort of idea here is the code snippet from what I have.
var software =["Test","Test2","Test3"];
var name=prompt("Please input name") // Prompts for software list
if (name.toLowerCase()=== "Test".toLowerCase()) //Returns true or false based on the prompt