Had a problem with the sum because it was giving me 16+16=1616, realized this was because the innerHTML value was a string (the two strings for row 1 and row 2 were being combined)
I used parseInt to convert the innerHTML to integers, which then allowed me to sum the two values of row 1 and row 2
Used JavaScript charAt method to determine a specific digit of the sum at a given index
Bulbs and values of third row were showing up at the wrong index because there are 16 bulbs
ex. the value 16 would have 3 off bulbs starting on the left, 1 on, and the 12 to the right were off
I fixed this by determining the correct index that corresponds to the binary sum when the length is less than 16
Frontend
Backend