Takes as correct, does not work - JAVA


#1

var main = function() {
$('.icon-menu').click(function();
$('.menu').animate; ({
left: "0"
}, 200);

$('body').animate({
left: "-285px"
}, 200);

$('icon-close').click(function()
$('.menu').animate({
left: "-285px"
}, 200);
$('body').animate({
left: "0px"
}, 200);
$(document).ready(main);

Telling me there's an unexpected token. No idea what that is


#2

First of @objectplayer08304 This is not java, this is javascript/Jquery. Second your problem is that you forgot to open your braces ({) in the click function:

Hope this helped!