A few weeks ago, I was working on a DIY project and needed to add two measurements together to get the total length for a shelf cleat I was cutting to support a shelf. A cleat is just a fancy word for a piece of material (e.g., wood in my example) fastened to the wall studs (2x4s). Of course, I don’t spend a lot of time adding fractions so I thought I would see if I could create something with JavaScript that I could use in the future. Sure, my phone could do this, but I wanted to see what I could do with JavaScript.
Result:
Simplified:
Leave a Reply