lightning web component button onclick code example
Example: salesforce lightning button
<lightning:button variant="Brand" label="Save" title="Save" onclick="{! c.save }" />
<lightning:button variant="Brand" label="Save" title="Save" onclick="{! c.save }" />