daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var balance = -1.00;
  2. var checkBalance = true;
  3. var isActive = true;
  4.  
  5. if (checkBalance === false){
  6.     console.log ("Thank you. Have a nice day!");
  7.  
  8. }
  9. if (checkBalance= true && isActive === true && balance > 0){
  10.     console.log (`Your balance is $${balance.toFixed(2)}.`);
  11.  
  12. } else if (checkBalance= true && isActive === true && balance === 0){
  13.     console.log ("Your account is empty.");
  14.  
  15. } else if (checkBalance= true && isActive === false){
  16.     console.log ("Your account is no longer active.");
  17.  
  18. } else if (checkBalance= true && isActive === true && balance != 0){
  19.     console.log ("Your balance is negative. Please contact bank.");
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top