Why Nostr? What is Njump?
2024-05-14 02:03:14
in reply to

Yonle on Nostr: Still a block. But doing without bracket is quite similar to this: ``` switch { let a ...

Still a block. But doing without bracket is quite similar to this:
```
switch {
let a = 1;
let a = 2; // the error arrives here
case "1":
// ....
}
```

Does not matter if you use let, var, or const tho.
Author Public Key
npub1x3azxuysp5vmfer4vgs4jn5tmfcx4ew8sh0qnev7gczljxsr7jwqa3g4el