Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Arrays Multidimensional Arrays Review JavaScript Arrays

complete the code below using the method that returns the darkened string inside the array.

I have re watched the video twice associated to this quiz, and I cannot figure this question or what code to use. Obviously unshift is wrong.

7 Answers

Hi Alana!

You want to type:

indexOf

indexOf is an array method that will return the ordinal position of 'darkred', which, in this case, is 2 (the third array element).

I hope that helps.

Stay safe and happy coding!

Thank you Peter! I actually found this on my own by looking around at others.... Do you know if I get a coding certificate and how many sections do I need to complete to do so. There is an Intermediate section that is part of the track I am working on. Should I be doing intermediate sections?

Thank you so much!

Alana

Hi Alana!

Treehouse doesn't offer certificates for the Courses or the Courses Plus (only points and badges).

Its learning programs are broken down into courses, tracks, tech degrees, and curated programs for teams.

You can earn a cert if you complete a Tech Degree program (at $199.00/month).

I hope that helps.

Stay safe and happy coding!

Even though I am a beginner, do you think I would be able to complete this Tech Certificate

Hi Alana!

I think if you stick with it, you can take it as far as you want!

I'd make sure you're good and grounded in the basics of HTML, CSS, and Javascript (and perhaps even PHP, React, Angular and Python).

Try to get through as many of the beginning and intermediate courses first before you jump into a Tech degree.

I think that way the Tech Degree will be smooth sailing!?!

Also, I recommend not just relying on Treehousem too - learn from every resource you can. such as:

https://www.w3schools.com/

https://www.freecodecamp.org/

https://www.udemy.com/

https://css-tricks.com/

https://developer.mozilla.org/en-US/

https://www.youtube.com/user/derekbanas

...to name a few alternative resources!!!

I hope that helps.

Stay safe and happy coding!

BTW, I have earned 4 certifications through freeCodeCamp, so far!?!

Something fun:

Are you familiar with the Simon Game coding challenge?

https://www.youtube.com/watch?v=1Yqj76Q4jJ4

Here's my excentric take on it:

https://codepen.io/petrovnikov/full/MXxQPx

LOL

(I made that when I was studying React and Redux and it's coded using both!?!)

Hello Peter,

Thank you for the advice regarding what classes to do before the Tech Degree and the different links to look at.

Thanks,

Alana