Skip to content

Instantly share code, notes, and snippets.

@bencooper222
Created September 1, 2016 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencooper222/83d8aa57b92cd5a34b772b41b3085d84 to your computer and use it in GitHub Desktop.
Save bencooper222/83d8aa57b92cd5a34b772b41b3085d84 to your computer and use it in GitHub Desktop.
Creates a superlative form for a set of names
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