Alguien que sepa cual es el error al declarar dos variables con "let"?

Cuéntanos qué está pasando:
Describe tu problema en detalle aquí.

Tu código hasta el momento


var catName = "Oliver";
var catSound = "Meow!";

Información de tu navegador:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36 Edg/99.0.1150.55

Desafío: Explora las diferencias entre las palabras claves var y let

Enlaza al desafío:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


You need to use let in place of var here. You are still using var.