From b9814d4105acee129629459e45e77311d99cbc3e Mon Sep 17 00:00:00 2001 From: "Troy S. Wood" Date: Thu, 11 Jun 2015 15:14:35 -0700 Subject: [PATCH 1/2] completed problem --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9bb9cd7..c711075 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,5 @@ var doubler = function(a, b) { + return 2 * a + 2 b; } console.assert(doubler(4,2) === 12); From 7d4622f9fc899b95e9105845a6dffb5dfaa9a7a2 Mon Sep 17 00:00:00 2001 From: "Troy S. Wood" Date: Thu, 11 Jun 2015 17:42:30 -0700 Subject: [PATCH 2/2] troys suggestion --- troy.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 troy.js diff --git a/troy.js b/troy.js new file mode 100644 index 0000000..25dae1b --- /dev/null +++ b/troy.js @@ -0,0 +1,14 @@ +// As per Troy +//Create a function that will read an object that contains words. The function will receive n args that will be a number. The object will match that number with the matching word with that many letters, resulting in a random sentence. + + + +var words = { 1: a , 2: my , 3: dog , 4: will , 5: barks , 6: barked} + +function createSentence(args){ + +}; + +console.assert(createSentence(1, 3, 5) === "my dog barks"); + +