I want to use a function when a button is pressed. In the jade file, I have already put the path where the file with the function is located, but clicking the button tells me that the method is not defined.
What is the folder where should I save my js file or in what way is the function called?