DEV Community

Discussion on: Elm vs. Svelte

Collapse
 
lt0mm profile image
Tom • Edited

Really nice article even for me who knows neither of the technologies. Though I think there is a bug in Svelte example - till I change the both values it treats one of them as a string and does string concatenation
Svelte example

<script>
    let a = 1;
    let b = 2;
</script>

without quotations seem to work

Collapse
 
lucamug profile image
lucamug

Good catch. Actually the one with the double quotes is another example that is half way in the post. I thought that on save the Svelte repl would provide a new url instead is just overwriting the old one.

Now I fixed both examples, with and without quotes.