You need Login/Signup to run/submit the code.
Build a Simple HTML Calculator | Frontend Coding Challenge | Vanilla JavaScript | Machine Coding Round
@Yomesh Gupta
In this question, you need to build a simple HTML calculator that performs the following basic operations:
- Addition
- Subtraction
- Division
- Multiplication
- Modulo
- Bracket Computation
- Clear
- Decimal Operations
Demo:
Mockups
Styling Information
Colors
- Body Background:
#fdfdfd
- Calculator Background:
#2f3640
- Numbers:
#718093
- Operators:
#fbc531
Box Shadow
rgba(0, 0, 0, 0.35) 0px 5px 15px;
Points to remember
- It is imperative that candidate must write clean, modular, and easy to follow code.
- This is a beginner-friendly exercise where the candidate would be judged on code structure, attention to detail, and execution speed. Use the timer provided to measure how fast you completed the exercise.
- Take the mockup as frame of reference and use your creative sense to add more functionalities, enhance UI, and make it more feature rich.
HTML/CSS/JavaScript
HTML/CSS/JavaScript
React