Lesson 6 next dot 1


#1

My code of this lesson is same as that of Catherine ,Nicolos Terol andTag solver 10154,anthony paulus is passed but my code is not passed showing same remark in the Editor.
Why it is so.pl check my code and tell mvar main = function() {
$('.dropdown-toggle').click(function() {
$('.dropdown-menu').toggle();
});
$('.arrow-next').click(function() {
var currentSlide = $('.active-slide');
var nextSlide = currentSlide.next();
var currentDot = $('.active-dot');
var nextDot = currentDot.next();

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

currentSlide.fadeOut(600).removeClass('.active-slide');
nextSlide.fadeIn(600).addClass('.active-slide');



currentDot.removeClass('.active-dot');
nextDot.addClass('.active-dot');
});

}
$(document).ready(main);


11. previous dot 2: Remember to remove '.active-dot' from the current dot
#2

You have a dot in your class name on the last line of your main function: ".active-dot" should just be "active-dot".