All your console logs are useless right now, you need to assign the required value to the variable secondToLastLetterOfLastName, you need to change just that line
You need to give to the variable secondToLastLetterOfLastName the required value, right now the value is just lastName
Exactly, and you need to assign that value to the variable secondToLastLetterOfLastName - even the name of the variable say so. Just change this line to give to the variable that value
var secondToLastLetterOfLastName = lastName;
If you want to check the value of the variable you can use
The tests are checking the value of the variable secondToLastLetterOfLastName, not what you print to the console, so you need to give to that variable the value asked in the exercise
And in your many console logs there is the right way to do it, but you are not assigning that value to anything so the tests can’t read it, and if it was a more complex piece of code it would be impossible to use that value in future steps
// Only change code below this line
var secondToLastLetterOfLastName = lastName; // <<< CHANGE THIS
Your code should be one line only. You need to modify lastName to get the second to last letter (which is c) and assign this value to secondToLastLetterOfLastName.
One of your console.logs in your very first post is actually correct, but you need to assign this value to the variable, not log it to the console…