Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var doubler = function(a, b) {
return 2 * a + 2 b;
}
return a + a + b + b;
};

Expand Down
14 changes: 14 additions & 0 deletions troy.js
Original file line number Diff line number Diff line change
@@ -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");