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 trialYan Chen
5,809 Points04:00 has errata, how can [7-1] got that results ?
I see [7-1] got the result [7,6,5,4,3,2] at 04:00, it can not be, [7-1] = [6], it should got 6 instead
1 Answer
Juan Martin
14,335 PointsHello :)
The [7-1] showed in the video is actually is [7:1:-1], remember that when you try to change some values directly in the console in some way the letters or whatever you're writing to fix something in your code is kind of substituted o apparently "erased", when this happens, you just move to the beginning of the line with the left arrow key and then move to the end with the right arrow key (works for me), with that, the whole line of code will be back again :)
Hope this helps
Kenneth Love
Treehouse Guest TeacherThe joys of using JavaScript to broadcast a terminal.
Brandon Wall
5,512 PointsBrandon Wall
5,512 PointsThis really threw me off as well, I was like 'No way does my_list[7-1] get that result.'