The calculator uses JavaScript to handle user input and perform calculations dynamically. Separate variables are used to store the first number operator second number and calculated result. The numbers function collects numeric input while the operatorr function identifies and stores the selected arithmetic operator. The calculation function performs the selected arithmetic operation and displays the final result on the calculator screen.
A clear function is also implemented through the vt function which allows users to reset the calculator and start a new calculation. The project demonstrates important JavaScript concepts such as variables functions conditional statements string manipulation type conversion DOM manipulation and event handling. Overall this project provides practical experience in combining HTML CSS and JavaScript to create a functional responsive and visually appealing web based calculator.
