DEV Community

loading...

Discussion on: Type | Treat Challenge 2

Collapse
orta profile image
Orta

Yeah, you can use number or any literal like 1, 2, etc.

In this case, number however feels more right, because you're saying any number from the index, not a specific one.

Collapse
clandau profile image
Courtney

Thanks! That makes sense.