- Create html
- create div to wrap the entire calculator-grid
- create output div with two inner divs previous/current operand and their dataset
- create buttons with dataset for numbers, operation and seperate dataset for del/clear/equals
- Create styles
- create div to wrap the entire calculator-grid
- create output div with two inner divs previous/current operand and their dataset
- create buttons with dataset for numbers, operation and seperate dataset for del/clear/equals
- display type of grid
- chnage pointer, font wize, add border and color with hover color
- style output, using flex
- style prev/curr operand
- Creat script
- create calculator class with constructor for prev/curr elem
- create other methods of the class as to clear, updateDisplay, compute, appendNumber, delete, chooseoperation and misc method to displayNumber
- attach click listeners for data set of numbers, operations, equals, clear, del, and ac
-
Notifications
You must be signed in to change notification settings - Fork 0
rijantkar/vanilla-js-calculator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published