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 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]; }