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/server-side-rendering/samples/computed/main.svelte

16 lines
194 B

<script>
export let a;
export let b;
function c() {
return a + b;
}
function cSquared() {
return c() * c();
}
</script>
<p>{a} + {b} = {c()}</p>
<p>{c()} * {c()} = {cSquared()}</p>