Having some trouple here - Building a responsive website


#1

Here is my code:

var main = function() {
('.btn').click(function() { var post = (’.status-box’).val();
('<li>').text(post).prependTo('.posts'); (’.status-box’).val(’’);
}
}
});
('.status-box').keyup(function() { var postLength = (this).val().length;
var charactersLeft = 160 - postLength;
$(’.counter’).text(charactersLeft);
});
};

$(document).ready(main);

Here is my error:
SyntaxError: missing ) after argument list


#2

@willbakerman,
Your closing curly-bracket-'s-} are out of sync…

var main = function() { 
    $('.btn').click(function() {
         var post = $('.status-box').val(); 
          $('<li>').text(post).prependTo('.posts');
          $('.status-box').val('');
          //}
          //}
     });

     $('.status-box').keyup(function() {
          var postLength = $(this).val().length;
          var charactersLeft = 160 - postLength;
           $('.counter').text(charactersLeft);
      });
}; 
$(document).ready(main);

Exercise 5: error message says "missing ) after argument list"
#3

Im sorry but I don’t quite knowwhat you mean by this.

Is there something I can reads/watch?