I completed this challenge with a design almost identical to the one in Figma. I am proud of myself for that. But my codes are so confusing. I am going to learn clean code techniques.
What challenges did you encounter, and how did you overcome them?I didn't know how can i control inputs. I was only asking users to enter numbers. Then i realized input tags have onInput attribute. Then i wrote this function:
function inputControl(e){ e.target.value = e.target.value.replace(/[^0-9]/,''); }
I made sure that users could only enter numbers with this function.