Trying to fix issue #1562

In Use Bracket Notation to Find the Nth to Last Character in a String:
There is a mistake in the code sample:

It should be: var thirdToLastLetterOfFirstName =
firstName[firstName.length - 3];
but is: var thirdToLastLetterOfFirstName = firstName[firstName.length -
2];
pull/18182/head
Cristian V. Nica 2015-08-05 19:08:49 +03:00
parent 50cc75fc41
commit b6f413e761
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@
"challengeSeed": [ "challengeSeed": [
"var firstName = \"Madeline\";", "var firstName = \"Madeline\";",
"", "",
"var thirdToLastLetterOfFirstName = firstName[firstName.length - 2];", "var thirdToLastLetterOfFirstName = firstName[firstName.length - 3];",
"", "",
"var lastName = \"Chen\";", "var lastName = \"Chen\";",
"", "",