From dae3107a754ca889c168f688185e9578baf85aea Mon Sep 17 00:00:00 2001 From: Sagar Patel Date: Thu, 26 Feb 2015 23:17:59 -0500 Subject: [PATCH 1/2] Fix escaping single quote --- algorithms_and_computer_science/letters_and_words/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algorithms_and_computer_science/letters_and_words/README.md b/algorithms_and_computer_science/letters_and_words/README.md index 09ff730..87a74ae 100644 --- a/algorithms_and_computer_science/letters_and_words/README.md +++ b/algorithms_and_computer_science/letters_and_words/README.md @@ -23,7 +23,7 @@ String.length](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference // The > is the REPL prompt. Don't type it! > 'hi there'.____; // Replace ____ with working code. 8 -> 'what's happening?'.____; // Replace ____ with working code. +> 'what\'s happening?'.____; // Replace ____ with working code. 17 ``` Let's swap some words around. [Docs for From cc8397bc15b5b1eb31e42248e555b2e0a088ffbd Mon Sep 17 00:00:00 2001 From: Sagar Patel Date: Fri, 27 Feb 2015 00:25:25 -0500 Subject: [PATCH 2/2] Finish Return Answer --- .../letters_and_words/questions_and_answers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algorithms_and_computer_science/letters_and_words/questions_and_answers.js b/algorithms_and_computer_science/letters_and_words/questions_and_answers.js index fcdbea0..eff4267 100644 --- a/algorithms_and_computer_science/letters_and_words/questions_and_answers.js +++ b/algorithms_and_computer_science/letters_and_words/questions_and_answers.js @@ -1,5 +1,5 @@ function getAnswer(entry) { - // Put your code here. + return entry.split(": ")[1]; }