This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Factory for Test Conditions | |
function testFactor(factor, msg) { | |
"use strict"; | |
return function(i){ | |
var output = ""; | |
if(i%factor===0) { | |
output = msg; | |
} | |
return output; | |
}; |
NewerOlder