Design comparison
Solution retrospective
Any idea of how to reduce the code amount and implement the function of the delete button is highly welcomed.
Community feedback
- @lemreyesPosted about 3 years ago
Hello 19alema,
Checked your CSS and good job in using CSS variables. Checked your JS code and I wouldn't say its that long. I think you should focus more on making code readable and not on making the number of lines shorter. So you might also wanna add more comments especially on the JS codes.
Regarding the function of the delete button you could use the substring() function. You can set the start index as 0, and the end point as (length - 1).
Marked as helpful1@edrickalemaPosted about 3 years ago@lemreyes Thank you so much for this bro, I highly appreciate your efforts to make me improve more which I won't let down. Thanks a lot.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord