pull/13740/head
Simon Holthausen 2 years ago
parent fb052be96e
commit f2f3c8b534

@ -6,6 +6,11 @@
// no semicolon at the end
$: time_8 = count * 8
$: ({ time_16 } = { time_16: count * 16 })
// preceeding let that doesn't do anything
let time_32;
$: time_32 = count * doubled;
let very_high;
$: very_high = time_32 * count;
</script>
{count} / {doubled} / {quadrupled} / {time_8} / {time_16}

@ -10,4 +10,7 @@
console.log('bar');
}
$: $count = 1;
$: $count.x = count;
</script>
<button onclick={() => count++}>increment</button>

@ -19,3 +19,5 @@
$count = 1;
});
</script>
<button onclick={() => count++}>increment</button>

Loading…
Cancel
Save