▲ 0 r/HTML
Help simplifying my recipe website code
I’m making a simple recipe website for school. It has 10 country flags, and when you click one it shows 4 dishes from that country. I already have working code, but it feels too long and confusing to explain in class. Also just feels wrong in how it looks. i dont get code man. I want the code to stay short, readable, and beginner-friendly maybe. Any tips on how to simplify the JavaScript without losing functionality? The javascript is already pretty sible, its mostly about the css and html
u/Nikzaccount — 2 days ago