is something wrong with my code?
i have two weeks of learning experience jQuery, what is wrong this code? it keeps displaying this on Console
[button, context: button, jquery: "1.11.2", constructor: function, selector: "", toArray: function…]0: buttoncontext: buttonlength: 1__proto__: m[0]
this is the actual code
<!DOCTYPE html>
<html>
<head>
<title>jQuery Event</title>
<link rel="stylesheet" href="day.css">
</head>
<body>
<h1>my website</h1>
<button>day</button>
<button>night</button>
<script>
(function() {
$('button').click(function() {
console.log($(this));
});
})();
</script>
</body>
</html>