Still lost here


#1

Remember to update the '.counter' to show how many characters are left.

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

#2

Hi Chris,

You have an extra }); in there. Can you see it? (Hint: line 9).