Skip to content

dacrab/calculator-js-html-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calculator Project with JavaScript

This tutorial guides you through building a sleek calculator using vanilla HTML, CSS, and JavaScript. It's an ideal project for honing your logical programming skills and showcasing them in your portfolio. We'll leverage various JavaScript methods and functions to create an impressive calculator, with detailed explanations provided for every step from HTML syntax to modern styling, including hover effects and intricate logical functions.

Features

  • Scientific calculator functionality including trigonometric functions, logarithms, and constants (π, e).
  • Dark and light theme toggle.
  • Responsive design for various screen sizes.
  • Keyboard support for input.
  • Addition, subtraction, multiplication, and division operations.
  • Clear functionality to reset the calculator.
  • Ability to delete the last character in the expression.
  • Support for decimal numbers.
  • Percentage calculations.
  • Toggle between positive and negative numbers.

Accessibility

  • ARIA labels for improved screen reader support.
  • Keyboard navigation friendly.
  • High contrast theme options.

Learning Highlights

Throughout this tutorial, you'll gain insights into various JavaScript logic concepts, including:

  • Utilization of string methods.
  • Understanding of isNaN and isFinite functions.
  • Implementation of event listeners.
  • Usage of regular expressions.
  • Exploration of Math and Number objects.
  • Application of logical and comparison operators.
  • Introduction to the eval function.

Tools Used

About

Calculator made using HTML , CSS and JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published