Interactive Website 11. Previous Dot 2


#1



https://www.codecademy.com/courses/web-beginner-en-seyrq/0/11?content_from=make-an-interactive-website%3Ajquery-effects#


Oops, try again. Remember to remove '.active-dot' from the current dot.
Uncaught SyntaxError: Unexpected identifier


var main = function() {
    $('.dropdown-toggle').click(function() {
        $('.dropdown-menu').toggle();
        
    });
    $('.arrow-next').click(function() {
        var currentdot = $('.active-dot');
        var nextdot = $('.active-dot').next();
        currentdot.removeClass('active-dot');
        nextdot.addClass('active-dot');
        
         if(nextSlide.length == 0) {
            
          nextSlide =  $('.slide').first(); }
        var currentSlide = $('.active-slide');
        var nextSlide = currentSlide.next();
        $('.dot').first();
        
        currentSlide.fadeOut(600).removeClass('active-slide')
        nextSlide.fadeIn(600).addClass('active-slide');
        
       
    });
   
   $('.arrow-prev').click(function() {
       var currentSlide = $('.active-slide');
       var prevSlide = currentSlide.prev;
     
       
       if(prevSlide.length == 0) {
           prevSLide = $('.slide').last();
           prevdot = $('dot').last();
           }
           
     currentSlide.fadeOut(600).removeClass('active-slide');
     prevSlide.fadeIn(600).addClass('active-slde');

        currentDot.removeClass('.active-dot');
       prevdot.addClass('.active-dot');
       
       
       var currentDot = $('.active-dot');
       prevDot $('.active-dot').prev();
       
      
       
   });


}

$(document).ready(main);


#2

See anything missing in the above?


#4