Creating a function to go through an array and if it finds a specific numeric value it returns true

I’m creating a function to sort through an array to return a boolean indicating whether or not the number 7 is anywhere in the array.

Reading my code out loud I feel like it should do exactly what I am asking it to do. Although I fully realize I am a beginner and I’m going to make mistakes. I cannot figure this one out.

My code for this

171 thoughts on “Creating a function to go through an array and if it finds a specific numeric value it returns true”