Prev Slide 2


This is the code I have published...keeps telling me to fade out current slide and remove 'active-slide' class

var main = function() {
$('.dropdown-toggle').click(function() {

$('.arrow-next').click(function() {
var currentSlide = $('.active-slide');
var nextSlide =;

var currentDot = $('.active-dot');
var nextDot =;

if(nextSlide.length ==0) {
nextSlide = $('.slide').first();
next = $('.dot').first();


$('arrow-prev').click(function() {
var currentSlide = $('.active-slide');
var prevSlide = currentSlide.prev();

if(prevSlide.length == 0) {
   prevSlide = $('.slide').last();







Hello @francobaresi13,

in your if statement: if (prevSlide.length == 0) also implement the code for prevDot and see if that makes a change. Also implement Dot code in the same way e.g.

 var currentDot = //Implement this!


bartholomewallen - appreciate the help. Sadly, nothing has changed, I'm still getting the same response.


Read my edited comment, @francobaresi13


Awesome, thank you so much


You're very welcome @francobaresi13, keep coding hard :smile:!

Also, remember to close this post by adding one of my replies as a solution so that other helpers know that it is closed.


@bartholomewallen still not working on the task it should be. The Next task is fine, then no.11 comes up with a similar error