Skip to content

ahmad-bradii/Basic-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Basic Calculator

Basic Calculator

A simple and user-friendly calculator built using HTML, CSS, and JavaScript. It enables you to perform basic arithmetic operations such as addition, subtraction, multiplication, and division with ease.

🎯 Try It Live

Experience the calculator in action: Live Demo

✨ Features

  • Clean and responsive design for a seamless user experience.
  • Supports all fundamental operations: +, -, *, and /.
  • Interactive buttons with real-time results.
  • [Optional: Add more features, e.g., decimal support, percentage calculation, etc.]

How It Works

The calculator utilizes the JavaScript eval() function.

What is eval()?

eval() is a built-in JavaScript function that executes a string as code. For example:

eval("3 + 5"); // Returns 8
eval("12 / 4"); // Returns 3

Note: While convenient, be aware of its security risks. Avoid using eval() with untrusted input to mitigate the risk of malicious code execution.

Installation Clone the repository:

git clone <repository_url>

Navigate to the project directory:

cd <project_directory>

Have fun! 😉

About

A basic Calculator using HTML, CSS and JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published