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.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.