Created
December 21, 2016 22:47
-
-
Save Philocoder93/db102cadfd3f30ab56235ea3f811f9d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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