Next dot 1_can't make it work



I'm having a problem with the code of excercise 6 (next dot 1) and checked all the remarks also other people in this forum gave.

Here's the code I used:

var main = function () {
var currentSlide = $('.active-slide');
var nextSlide =;

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

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



Uff :pensive:


Hi! I've had this problem too and just found out what's missing. I compared our codes and I think there's just something missing there... I think you didn't close the main function. try putting }; before the $(document).ready(main); line. I hope this helps.


I've tried that, but it doesnìt work...
It pops out this message "Remember to add '.active-dot' to the next dot."
The thing is, I added the active-dot to the next dot class :confused:


uhuh, just saw something else in your code.. in your if statement, length spelling is incorrect.


couldn't figure out my problem so I just started over it worked