Created
December 7, 2017 15:24
-
-
Save rihannaKe/f8568348392270939cdf1660774296b4 to your computer and use it in GitHub Desktop.
This file contains 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 balance = 350; | |
var checkBalance = true; | |
var isActive = false; | |
if(checkBalance === true){ | |
if(isActive === true && balance > 0){ | |
console.log("Your balance is $"+ balance +"."); | |
} else { | |
if(isActive === false){ | |
console.log("Your account is no longer active."); | |
} else { | |
if (balance === 0){ | |
console.log("Your account is empty."); | |
} else { | |
console.log("Your balance is negetive. Please contact bank."); | |
} | |
} | |
} | |
} else { | |
console.log("Thank you, have a nice day!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment