Design comparison
Solution retrospective
Hello Frontent mentor community! :)
i think i learned a lot during this project, which is my favourite so far, whenefinishing it i felt really accomplished.
- Made the design with Mobile-first workflow which i really liked and plan to do every project this way.
- Tried the :placeholder pseudo class for the first time. I also learned how to make a custom error message, and show it under the input fields which i think is really cool and turned out well.
- Used HTML and JS form validation together, i learned a lot about the JS form validation
First i tought this project would take a lot of time, but i finished it in 2 hours, and i'm really happy with the result.
I started learning from scratch by myself about a week and half ago, my plan for the near future is to complete every Newbie project and learn as much HTML and CSS as i possibly can then move on to JS and solve even harder projects!
Follow me on my journey, this is my 6 solved newbie project from the 18 available ( 28.04.2023)
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there π. Congratulations on successfully completing the challenge! π
- I have other recommendations regarding your code that I believe will be of great interest to you.
JAVASCRIPT π‘:
- The way you declared variables are need to be well structured and organized
- Take a look at the following example code which describes a better way of declaring variables to have a well structured code
const firstName = "Your"; const lastName = "Name"; const emailAddress = "[email protected]"; const password = "supersecret";
- instead try this,
const firstName = "Your", lastName = "Name", emailAddress = "[email protected]" β’β’β’ β’β’β’ // n number of declarations password = "supersecret"; // make sure to add a semicolon at end of last declaration
- This single line declaration with separated commas will helps you to have a better structured code and improves readability though
.
I hope you find this helpful π Above all, the solution you submitted is great !
Happy coding!
Marked as helpful1@zsoltvarjuPosted over 1 year agoHello Abdul Khalid! @0xAbdulKhalid
Thank you very much for your comment, it's a usefull information which i will try to implement in my next project. It is interresting i tought the opposite, that if i use separate declarations it is better.
Thanks for the information once more, have a very nice day! :)
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