Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript Refresher exercises: Print the first company, middle and last company #275

Open
mtinife opened this issue Mar 4, 2023 · 1 comment

Comments

@mtinife
Copy link

mtinife commented Mar 4, 2023

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.

@akashleo
Copy link

akashleo commented Mar 12, 2023

Assign this issue to me, I want to contribute to this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants