You are browsing as a guest. Sign up (or log in) to start making projects!

2h 21m 3s logged

Day 2 - The app finally works!!😭😭

Spent most of today debugging JavaScript.
I typed the entire app.js by hand which meant
I had a LOT of typos - textContext instead of
textContent, onlick instead of onclick, chores
instead of chore… honestly embarrassing but
also kind of funny.

The algorithm works though. Added nate and jason
as family members, gave them 3 chores with different
points, clicked Assign - and it actually distributed
them fairly. nate got 5 points worth of chores,
jason got 3. Not perfect equality but that’s how
the greedy algorithm works.

Debugging through the browser console was actually
really useful - each error pointed me exactly to
the broken line.

1
116

Comments 0

No comments yet. Be the first!