Commented my function and explained all the pieces of it. Created a variable for my function. I tried to just call on my function name but once again I couldn't get it to work.
Created a message with results for the console and commented that part.
Created an alert so the answer comes up immediately instead of the user having to view the console. Commented on that piece as well.