New Dot 1


I'm stuck on Next Dot 1. I even tried copying and pasting the code from the hint, but it still gives me the same errors.

It keeps giving me the "Oops, try again. Remember to remove '.active-dot' from the current dot." error. It also says "Uncaught SyntaxError: Unexpected end of input".

var main = function() {

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

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

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





Hi Leila,

You need to close your main function with a closing curly brace (}) just before the last line :slight_smile:


It worked! Thanks so much!


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.