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 trial

JavaScript JavaScript and the DOM (Retiring) Traversing the DOM Getting the First and Last Child

[SOLVED]Need someone to review my code

I think I'm nearly done with the extra feature in the webpage but, there is a bug I can't figure out. So here is my code, can someone review the code and tell me what's wrong? https://w.trhou.se/sqe0op63nx .

I can take a look at it, but before I do, do you mind describing the bug you are experiencing and steps to reproduce it?

I agree with Jonathan on this. A code evaluation is easy, but it'd be really helpful to have a description of the bug ahead of time so we know what to look for

Yeah, sure. The bug is when i click the button 'down' on the third element ( which is the one before the last ) the last one takes its place as expected but the 'down' button of the last element which is now the third disappears after it. Sorry I didn't say that at the beginning.

Nevermind guys, fixed the bug. Thanks for your time :)

1 Answer

No worries and I am glad you figured it out!

Thanks :D