Why my button isn't working and doesn't display on console

I used onClick( ) method but it doesn’t display the matter on console when clicked.
can anyone please mention the mistake I did?

Perhaps you can try change the type attribute of the button from “submit” to “button”.

i think, it will work if you replace the curly braces at the onclick attribute by quotation marks. like this- onclick = “(e) => console.log(“clicked here”)”