Calculator
HTML/CSS/JS project from The Odin Project
Install / Use
/learn @rlmoser99/CalculatorREADME
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:
- Parenthesis
- Factorial
- Exponentiation
- Multiplication and division
- Addition and subtraction
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
