From ed8ff65a2be5d038087b62c398cb1ca4c6a59a3a Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Mon, 21 Dec 2015 01:33:04 +0530 Subject: [PATCH] Fixes #5393 : Title Case a Sentence - Add/Remove helpful links --- .../01-front-end-development-certification/basic-bonfires.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/basic-bonfires.json b/challenges/01-front-end-development-certification/basic-bonfires.json index 859042ef88..11560772d6 100644 --- a/challenges/01-front-end-development-certification/basic-bonfires.json +++ b/challenges/01-front-end-development-certification/basic-bonfires.json @@ -319,7 +319,7 @@ "assert(titleCase(\"HERE IS MY HANDLE HERE IS MY SPOUT\") === \"Here Is My Handle Here Is My Spout\", 'message: titleCase(\"HERE IS MY HANDLE HERE IS MY SPOUT\") should return \"Here Is My Handle Here Is My Spout\".');" ], "MDNlinks": [ - "String.charAt()" + "String.split()" ], "solutions": [ "function titleCase(str) {\n return str.split(' ').map(function(word) {\n return word.charAt(0).toUpperCase() + word.substring(1).toLowerCase();\n }).join(' ');\n}\n\ntitleCase(\"I'm a little tea pot\");\n"