Created
September 1, 2016 06:17
-
-
Save bencooper222/83d8aa57b92cd5a34b772b41b3085d84 to your computer and use it in GitHub Desktop.
Creates a superlative form for a set of names
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
function myFunction() { | |
var form = FormApp.create("Superlatives"); | |
var array = // PUT YOUR NAMES HERE | |
for(var i = 0; i<array.length; i++){ | |
var item = form.addParagraphTextItem(); | |
item.setTitle(array[i]); | |
} | |
Logger.log(breakUpString("hello,goodbye")); | |
} | |
function stringSearch(content, key){ | |
var count = 0; | |
for(var i=count=0; i<content.length; count+=+(key===content[i++])); | |
//>count:2 | |
return count; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment