var myButton = document.querySelector( "button" );
myButton.addEventListener( "click", function( evt ) {
alert( "Hello World!" );
}, false);
$("button").click( function() {
alert("Hello World");
} ) ;
Class Exercise: Apply animate() to a div
.animate( property, speed, callback );
Class Exercise: animate() a div using mouse hover()
$("div").hover(function(){
$(this).animate({ width: "300px" });
}, function() {
$(this).animate({ width: "100px" });
});