In this project you are going to create an electronic checkbook using Javascript. You can add amounts and withdraw amounts from your current balance.
Instructions:
1. Create a global variable called accountBalance. Initialize it to 0.
2. The amount field should follow the following rules:
3. Create a deposit function that will process a deposit to the account.
4. Create a withdraw function that will process a withdrawl from the account.
5. Create a displayBalance function that will display the current value of accountBalance in the Balance field. The balance amount displayed to the page should be formatted as currency. Call this function whenever a deposit or withdrawal is processed. Call this function from the Balance button.
6. Use the combined operators for the deposit and withdraw processes.
7. Use parseInt( ) or parseFloat( ) as needed.