What happens when a visitor clicks on the button on this webpage?

Nothing, because the onclick attribute is missingThe button calls the like() function

The JavaScript code changes the HTML code.