From 508f20d8180bb649f830847fe927397ca2749d11 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/seed/challenges/01-front-end-development-certification/basic-bonfires.json b/seed/challenges/01-front-end-development-certification/basic-bonfires.json index 859042ef88..11560772d6 100644 --- a/seed/challenges/01-front-end-development-certification/basic-bonfires.json +++ b/seed/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"