Design comparison
Solution retrospective
trying to make it as close as possible.
Community feedback
- @FilipCondacPosted over 1 year ago
Good job! Good and clean code also easy to read!
In your JavaScript you should be using “const” rather than “let” for variables that don’t get reassigned in the future. In your case you can do this for things such as your function declaration and Query selectors. These things will always be the same thing, a function or a query selector! In this small example it doesn’t matter much as efficiency isn’t a problem but it is good practice for future larger projects!
Good luck!
Marked as helpful1@pirarkuPosted over 1 year ago@FilipCondac thank you! I will keep that in mind in the future project
1 - @HeinZarNePosted over 1 year ago
This is awesome Bro! I love it. I think it will be better if you add style on button text. This is not easy to do with pure JavaScript. Keep going !!!
(Don't forget to delete console.log())
Marked as helpful1@pirarkuPosted over 1 year ago@HeinZarNe damn i missed those things ahaha thanks bro!
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