Https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/use-bracket-notation-to-find-the-nth-to-last-character-in-a-string

is that code good?
var secondToLastLetterOfLastName = lastName[lastName.lenght - 2];
or it is possible error in tutorial ?
its not the first time similar issue had been showing up,
I think the code is ok, but message returns as :
// running tests

secondToLastLetterOfLastName

should be ā€œcā€. You should use

.length

to get the second last letter. // tests completed

Hi sylvek7,
when you get a result like this one result
that means all tests are passed

just a spelling error, check how you wrote this

1 Like

geeting blind i guess,
thank you

Hey @sylvek7, just a tip for next time if you need a help from a challenge, you can use the Get Help button on the sidebar.

Edit: Why did you put me as the solution? I just gave you a tip. It seems like either @ilenia or @OJL helped you solved it.