You should change func to function. In the click method you have to pass a callback function. If you have declared earlier a function, pass there a reference to this function. Otherwiser pass an anonymous function like below and define inside it's body, what you want to be executed when the button is clicked.
$(document).ready(function(){
$("button").click(function(){
newfunc();
});
});
By the way propably you have also to change your selector, $("button"). If the button has a specific id, for instance buttonId, then use this: $("#buttonId"). While if the button has a specific class, for instance js-button, then use this: $(".js-button")
functofunctionin line 2$("button").click(func(){=>$("button").click(function(){$("button").click(function(){instead of$("button").click(funcclick(function (){})