I do not understand what's the problem?



$(document).ready(function() {
$but.click(function() {

everything works, but when I click on the "save & submit code" pops Oops, try again. Did you call .click () on $ ('button')?
What's the problem I do not understand.


The lesson doesn't tell you that $ defines a variable, it tells you to make a variable $name

you still need to call a variable with the var keyword;

var $but = $('button');
$but.click(function() {}


Nothing has changed, it's just a glitch. The problem was solved. Just had to wait a few seconds after pressing the button. Thanks for the response =)