the funny

This commit is contained in:
Daniel Bulant 2022-05-07 17:09:57 +02:00 committed by GitHub
parent 5754ef58dd
commit 874a84071e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,10 @@
<script>
var name = "world";
let funny = { "amogus": "ඞ", "AMOGUS": "sussy baka", "discord": "proprietary matrix", "never gonna give you up": "never gonna let you down" };
</script>
<h1>Hello {name}</h1>
<h1>Hello {name[funny] || name}</h1>
<input type=text bind:value={name}>
@ -10,4 +12,4 @@
h1 {
padding-top: 0;
}
</style>
</style>