lastNameLength = lastName.lenght;

Cuéntanos qué está pasando:
Describe tu problema en detalle aquí.
Why does it return 'lastNameLenght is not defined??? I don’t get it…

Tu código hasta el momento


// Configuración
let lastNameLength = 0;
const lastName = "Lovelace";

// Cambia solo el código debajo de esta línea
lastNameLength = lastName.lenght;
console.log(lastNameLenght)

Información de tu navegador:

El agente de usuario es: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

Desafío: Encuentra la longitud de una cadena

Enlaza al desafío:

You have a spelling error here.

1 Like

Always check what kind of error it gave. If it says "Reference Error, " it means there’s a disconnect between variable name that’s being called and the existing variable true name, which frequently caused by typo (spelling error)

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.