Jquery: feedster project


#1

https://www.codecademy.com/paths/web-development/tracks/learn-jquery/modules/learn-jquery-event-handlers/projects/feedster

Hello!
I can not find what is wrong with the code, as the “character remaining” does not get counted in the typing box. Someone help ?

(document).ready(() => { (’.menu’).on(‘mouseenter’, () => {
('.nav-menu').show(); }) (’.nav-menu’).on(‘mouseleave’, () => {
$(’.nav-menu’).hide();

})

('.btn').on('mouseenter', (event) => { (‘event.currentTarget’).addClass(‘btn-hover’).on(‘mouseleave’, (event) => {
('event.currentTarget').removeClass('btn-hover'); }) (’.postText’).on(‘keyup’, (event) => {
let post = (event.currentTarget).val(); let remaining = 140 - post.length; if(remaining <= 0) { (’.wordcount’).addClass(‘red’);
} else {
$(’.wordcount’).removeClass(‘red’);
}

$('.characters').html(remaining);

})
$(’.postText’).focus();
});