From 0676b8a82c7d7e6d4b8b3d35a59c6297fa65c1b5 Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Fri, 25 Dec 2015 21:31:59 +0530 Subject: [PATCH] Use Bracket Notation to Find the NthtoLast Character in a String --- .../basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 8195f73072..75ba8a9448 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -1306,8 +1306,8 @@ "You can use the same principle we just used to retrieve the last character in a string to retrieve the Nth-to-last character.", "For example, you can get the value of the third-to-last letter of the var firstName = \"Charles\" string by using firstName[firstName.length - 3]", "

Instructions

", - "Use bracket notation to find the second-to-last character in the lastName string.", - " Hint
Try looking at the thirdToLastLetterOfFirstName variable declaration if you get stuck." + "Use bracket notation to find the second-to-last character in the lastName string.", + " Hint
Try looking at the thirdToLastLetterOfFirstName variable declaration if you get stuck." ], "tests": [ "assert(secondToLastLetterOfLastName === 'c', 'message: secondToLastLetterOfLastName should be \"c\".');",