The final project for the Odin Project's Foundations course: a four-function calculator, written in JavaScript.
It took me a while to think through all the logic, but I eventually got there. Definitely a headache.
Maybe I'll make this a scientific calculator in the future, who knows?