Create a Wallet function that can be called multiple times & maintain balance and transactions, we should be able to call it in a chain way. example is 👇
Wallet(); // prints nothing or its up to you whatever you want to print.
Wallet().getBalance(); // Balance is 0.
Wallet().add(50).add(70).getBalance(); // Added 50. Added 70. Balance is 120.
Wallet().showTransactions(); // +50 <<Date time>>. +70 <<Date time>>.