Lesson 5 error message


#1

i used everything but it still says error
what should i do?
help me please

$('.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 = (140 - postLength);  
    $('.counter').text(charactersLeft);  
});
};
$(document).ready(main);

#3

Hi you should add this line on top of your code

var main = function(){

all your code should be inside the main function

var main = function(){


};
$(document).ready(main);