Skip to content

Instantly share code, notes, and snippets.

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();
function stringSearch(content, key){
var count = 0;
for(var i=count=0; i<content.length; count+=+(key===content[i++]));
return count;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment