You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/js/samples/instrumentation-script-if-n.../input.svelte

11 lines
124 B

<script>
let x = 0;
function foo() {
if (true) x += 1;
}
</script>
<button on:click={foo}>foo</button>
<p>x: {x}</p>