So what we’re doing here is passing the jQuery.hover method 2 anonymous functions that are going to handle the mouseEnter and mouseLeave events. (Because, after all - jQuery.hover is only a shorthand to bind handler functions to those events.)
So the right brace on the 3rd line is in fact the closing brace for for the first function - then you’ll notice that there is a comma “,” there to indicate that we’re now beginning to pass in the next parameter to this method, which in this case is another anonymous function.
What might help you in writing and understanding JavaScript code a little bit better is if you use a code editor with good syntax highlighting, so that when you place your mouse cursor next to a brace, bracket or paren, it will highlight its matching counterpart. (See attached pic for example)