SkillAgentSearch skills...

Calculator

HTML/CSS/JS project from The Odin Project

Install / Use

/learn @rlmoser99/Calculator
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Calculator

This project is from The Odin Project. This project was completed before TOP clarified the instructions to only evaluate a single pair of numbers at a time. If you are doing TOP, do not attempt to re-create this functionality!

Code, Re-Factor, Repeat...

I had to re-factor my work several times as I realized how different functions and variables interacted with each other. I hope to learn more on how to plan and execute a project like this more efficiently. As I am learning, I just took everything one step at time and then re-factor when necessary.

Regex is AMAZING!

I really enjoyed working with regular expressions and probably over-used them to format the display numbers.

Order of Operations

The calculator is not 100% scientifically accurate. Although, I did use the order of operations published by Wolfram:

  1. Parenthesis
  2. Factorial
  3. Exponentiation
  4. Multiplication and division
  5. Addition and subtraction

Related Skills

View on GitHub
GitHub Stars22
CategoryDevelopment
Updated1y ago
Forks9

Languages

JavaScript

Security Score

60/100

Audited on Dec 11, 2024

No findings