11.11 Previous Dot 2


Hi, I keep getting an error asking me to remove active dot from currentDot.


try looking to see if you missed any $.


hmm had some problems with this lesson myself but i just manage to get it right now, after a few days.

From what i see, the message points out > ' . active-dot ' ... there is a point there. Try adding the point to both currrentDot and prevSlide ( '.active-dot') . This adding worked for me although the "oops, try again..." message for me was about defining the variables.

I think this lesson is a bit buggy. Hope it worked for you also.


same problem here....


Hi Nijhawan,

Could you please copy/paste your entire code into the forum so we can help you? It's hard to work off of an incomplete screenshot.


here is how l fixed mine if it will help you

var main = function() {


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

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


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

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