For example I have an array of
var lines = [acerola, apple, apricots, avocado, banana, blackberry, blackcurrant, blueberry, breadfruit, cantaloupe]
The word I type is "coconut", since it is not in my array, I want it to show an output of "Incorrect Spelling". How can I do that?
Also how can I remove the already use name of fruits in the list when it's been already called or typed then load it again when the game starts again?
Thank you in advance for the help!!