diff --git a/index.js b/index.js index 3b24cd5..d817d70 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,6 @@ var doubler = function(a, b) { + return 2 * a + 2 b; +} return a + a + b + b; }; 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"); + +