Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlana Warson
5,296 Pointscomplete 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
Peter Vann
36,427 PointsHi 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!
Alana Warson
5,296 PointsThank 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
Peter Vann
36,427 PointsHi 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!
Alana Warson
5,296 PointsEven though I am a beginner, do you think I would be able to complete this Tech Certificate
Peter Vann
36,427 PointsHi 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://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!
Peter Vann
36,427 PointsBTW, 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!?!)
Alana Warson
5,296 PointsHello Peter,
Thank you for the advice regarding what classes to do before the Tech Degree and the different links to look at.
Thanks,
Alana