Hello! I hope you guys are having a great day!
Can somebody help me with something regarding this section's project?
I'm done with the buttons in the project but whenever I press them, everything is messed up (CSS is messed up and it just shows the number I incremented)
#I need help with the JavaScript solo project
1 messages · Page 1 of 1 (latest)
not sure if you share the link to your project but you only have 1 function add1ToHome
Also, you have two <div> elements with the same id="home-score". As a result, the line document.getElementById("home-score").textContent = homeScore in your function will update only the first matching element, which may not be the intended behavior.
thats why everything is gone
hope you can see my changes in this link
https://scrimba.com/frontend-path-c0j/~05h/s0g1d8f5sh/s0v8570458/head
ahhhhhh that's why everything was messed up!!! Thank you a lot for pointing that out!!
is that not allowed?
oh it is fine, what i meant is you need to add a few more function (this is unrelated to above issue).
I appreciate you!!
I finished it
I'm proud of myself haha
fantastic, well done .
more than happy to help 🙂