***JavaScript***
Q1. Write JavaScript program to add functionality to the simple calculator. Make sure your program includes these features.
1+2
CALCULATOR
1. Before you start working on your code, look at the data file given and see how things are placed, ids or names or class.
2. As the different keys are clicked, the values are displayed on the screen as shown (1+2). Once the = key is clicked, your program reads the expression and performs the operation, and displays the result on the screen. Your program should work for any expression and maintain the order of operations. For example, if the expression is 6/3+52-1 = 110 (first division, then addition and subtraction). No two operators should be added consecutively (no two operator keys clicked consecutively). The equation shouldn't start with an operator except minus. Assume that only integer numbers are given. If the c (clear) key is clicked, clear the screen. Not allowed to use the eval function. Add documentation in your code.
3.
4.
5.
6.
7.
8.
9.
10.