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


#1

Here is my code:

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

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

I have had a play around and I cant seem to get it to pass. please help thank you you.


#2

@willbakerman
please display the FULL code you are using....


#3

@willbakerman,

Please read your other Post
https://discuss.codecademy.com/t/having-some-trouple-here-building-a-responsive-website/36381/2?u=leonhard.wettengmx.n


#4

var main = function() {
$('.btn').click(function() {
var post = $('.status-box').val();
$('

  • ').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);