First remove the line lastNameLength = 8 from your code.
You have to assign the length of the value of lastName variable, i.e Lovelace. The length of Lovelace is 8. You have to assign it by the .length method of string.
Example:
const var = "Marry";
const varLength = 0;
// Length of var variable
varLength = var.length;
// Now varLength is 5
Here, the length of the value of var variable (Marry) is assigned to the varLength.