Im making a game where you guess a random fruit. I have the fruits in an array but it seems that the user can only enter the array number value and not the string associated with it. How can I fix this so that the guess can equal the string value and not the array numeric position value?
also, my final alert is not working for some reason. Im working on fixing that, but im not sure why its not triggering.
Thanks! This will help for sure. Ive totally seen this done before but I forget all the things I can do and manipulate with these things. Sometimes I just pass over information, especially if im focused on a broader concept.
This is very simplified, but the JavaScript interpreter is basically plugging in the values for all the variable references on a line until there aren’t any left, and then evaluating.