DangerLove12
9/26/2017 - 1:09 AM

cat dispenser

var cats = ['Jayne', 'Kaylee', 'Malcolm', 'Monty', 'River', 'Simon', 'Zoe'];
var noms = treatDispenser(cats);
var noNoms = cats.charAt(0) = M; 

function treatDispenser(animals) {

  for (var i = 0; i < cats.length; cats++)

    if (noNoms === true) {
      console.log("No treat for " + cats + ".");
      cats++;
    } else {
      console.log(cats + "loved their treat.");
    };
}