Skip to content

Instantly share code, notes, and snippets.

@Philocoder93
Created December 21, 2016 22:47
Show Gist options
  • Select an option

  • Save Philocoder93/db102cadfd3f30ab56235ea3f811f9d2 to your computer and use it in GitHub Desktop.

Select an option

Save Philocoder93/db102cadfd3f30ab56235ea3f811f9d2 to your computer and use it in GitHub Desktop.
var convertToOunces = function() {
for (i=0;i<cups.length;i++) {
ounces[i] = cups[i] * 8;
}
};
var scores = [83,40,55,72,59,88,99];
var passOrFail = function() {
for (i=0;i<scores.length;i++) {
if (scores[i]>=60) {
scores[i] = "pass";
}
else {
scores[i] = "fail";
}
};
return scores;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment