scratchpad

returnArray
  function () {
    var theArray = new Array ();
    for (var i = 0; i < 10; i++) {
      let subobject = {
        i,
        square: i * i,
        cube: i * i * i,
        snark: getRandomSnarkySlogan ()
        };
      theArray.push (subobject)
      }
    return (theArray);
    }
oneFriendsInfo
  function () {
    var theProfile = twitter.getUserProfile ("davewiner");
    return (theProfile);
    }
getFriendsInfo
  function () {
    var theArray = new Array ();
    var theProfile = twitter.getUserProfile ("davewiner");
    console.log (jsonStringify (theProfile))
    theArray.push (theProfile);
    return (theArray);
    }
test
  function (name) {
    dialog.alert ("Greetings: " + name);
    }
myPrefs
  {
    age: 22,
    country: "USA",
    favoriteMovies: [
      "babe",
      "the departed",
      "heaven can wait",
      "casablanca"
      ]
    }