mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-10 19:01:13 -04:00
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];
This commit is contained in:
@@ -259,7 +259,7 @@
|
||||
"challengeSeed": [
|
||||
"var firstName = \"Madeline\";",
|
||||
"",
|
||||
"var thirdToLastLetterOfFirstName = firstName[firstName.length - 2];",
|
||||
"var thirdToLastLetterOfFirstName = firstName[firstName.length - 3];",
|
||||
"",
|
||||
"var lastName = \"Chen\";",
|
||||
"",
|
||||
|
||||
Reference in New Issue
Block a user