Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 647 Bytes

File metadata and controls

19 lines (11 loc) · 647 Bytes

atm-cli-javascript

ATM (Automated Teller Machine) CLI (Command Line Interface) with Javascript

Demo

https://www.creativebrain.web.id/demo/atm-cli-javascript/

Command Line Interface (CLI) to simulate an interaction of an ATM with a retail bank.

Commands

  • login [name] - Logs in as this customer and creates the customer if not exist

  • deposit [amount] - Deposits this amount to the logged in customer

  • withdraw [amount] - Withdraws this amount from the logged in customer

  • transfer [target] [amount] - Transfers this amount from the logged in customer to the target customer

  • logout - Logs out of the current customer