LIVE DEMO :- Cash Withdrawal
In this assignment let's build a Cash Withdrawal
Click to view the Design Files
Click to view the Set Up Instructions
- Download dependencies by running
npm install
- Start up the app using
npm start
Click to view the Functionality to be added
The app must have the following functionalities
-
Initially the balance should be 2000 rupees.
-
When a denomination is clicked the respective value should be deducted from the balance available.
-
The
CashWithdrawal
component receives thedenominationsList
as a prop. It consists of a list of denomination objects with the following properties in each denomination objectKey Data Type id Number value Number
Click to view Quick Tips
-
The
slice()
method extracts a section of a string and returns it as a new string, without modifying the original string.const text = "The quick brown fox"; console.log(text.slice(0, 3)); // The console.log(text.slice(2, 3)); // e
-
You can use the below cursor CSS property for buttons to set the type of mouse cursor, to show when the mouse pointer is over an element,
cursor: pointer;
-
You can use the below outline CSS property for buttons and input elements to remove the highlighting when the elements are clicked,
outline: none;