Last active
January 29, 2017 22:14
-
-
Save anthonydelgado/b7e2f02e8115c19c8ab06c3170dd4793 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 action = process.argv[2]; | |
// We will then create a switch-case statement (if-then would also work). | |
// The switch-case will direct which function gets run. | |
switch(action){ | |
case 'total': | |
total(); | |
break; | |
case 'deposit': | |
deposit(); | |
break; | |
case 'withdraw': | |
withdraw(); | |
break; | |
case 'lotto': | |
lotto(); | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment