ON: Klik Argumen Svelte

function handleClick(x){
	console.log(x);
    //output: tree
}

<button on:click={() => handleClick("tree")}>
    It works...
</button>
Busy Boar