You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is minor but I wanted to point it out. I found there wasn't a reference or explanation for finding the middle index of an array. What did the question mean by the middle? I think in the Array section we could include an explanation for finding the center of an array. In the array section on the length and how to find the last index of an array, we could add to it to find the center of any array. I am not sure if this is helpful but it left us wondering about it. This is the solution I found to find the center of a console.log("Middle company is " + companies[(companies.length + 1) / 2 - 1])
Again not sure if this is important.
The text was updated successfully, but these errors were encountered:
This is minor but I wanted to point it out. I found there wasn't a reference or explanation for finding the middle index of an array. What did the question mean by the middle? I think in the Array section we could include an explanation for finding the center of an array. In the array section on the length and how to find the last index of an array, we could add to it to find the center of any array. I am not sure if this is helpful but it left us wondering about it. This is the solution I found to find the center of a
console.log("Middle company is " + companies[(companies.length + 1) / 2 - 1])
Again not sure if this is important.
The text was updated successfully, but these errors were encountered: