The hint didn't help. What am I missing?


Inside the click event handler for '.arrow-prev', write an if statement to handle this case:

After creating the variables currentSlide and prevSlide, write an if statement that checks if prevSlide.length == 0. If it is, set prevSlide equal to the last slide using $('.slide').last();Try it out! In the web page to the right, click the previous arrow and see what happens!

My code:
$('arrow-prev').click(fucntion () {
if (prevSlide.length == 0) {
prevSlide.length = $('.slide').last();

The hint did not help me, it just showed me what the event handler looked like. What am I missing?


You've spelled function wrong.


Thanks for the help. :slight_smile:
I clicked "Save & Submit Code", but it gave me this error message:
Oops, try again.
Remember to fade out the current slide and remove the 'active-slide' class.


So that means you want to .fade() the .currentSlide, then remove the .activeSlide class.


But without capitalization...






My bad, I should let you handle the jQuery. :slight_smile:


@cadecodes No worries, you're doing fine, I just wanted to point that one thing out :slight_smile: