Skip to content

Repository files navigation

JavaScript Calculator App

This project is a simple calculator application built using JavaScript. The app allows users to perform basic arithmetic operations, manage memory, and change operations dynamically. The project explores the use of the useReducer hook in React, highlighting the reducer pattern for managing state.

Table of Contents:

~ Features ~ Getting Started ~ Usage

Features:

~ Basic Operations: Perform addition, subtraction and multiplication.

~ Memory Functions: Save to memory (M+), recall from memory (MR), and clear memory (MC).

~ Dynamic Operations: Change the current operation dynamically and apply numbers accordingly.

~ Clear Display: Reset the total value to zero using the CE button.

~ Responsive UI: A clean and responsive user interface for a seamless experience.

Getting Started:

To get started with the project, follow these steps:

~ Clone the repository:

git clone https://github.com/JovanCraft/Calculator-App.git cd calculator-app

~ Install dependencies:

npm install

~ Run the application:

npm start

The app will be available at http://localhost:3000.

Usage:

~ Performing Calculations: Use the buttons to enter numbers and operations. The display will show the current total.

~ Using Memory Functions: Save the current total to memory using M+, recall it using MR, and clear the memory with MC.

~ Clearing the Display: Use the CE button to reset the total value to zero.

About

A simple calculator app

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages