79751917

Date: 2025-08-31 17:23:21
Score: 1
Natty:
Report link

The solution to your problem is very simple.
Just assign a value to your name variable.

```ts
let name: string = "";
```

const name = (function() {
    switch(index) {
        case 0:
            return "cat";
        case 1:
            return "dog";
        default:
            return "idk";
    }
})()

**More on JS IIFE:** https://stackoverflow.com/a/8228308/21962459

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ammar