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
parent
50cc75fc41
commit
b6f413e761
|
@ -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\";",
|
||||||
"",
|
"",
|
||||||
|
|
Loading…
Reference in New Issue