Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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