Submitted over 1 year ago
Return Summary Component Main (HTML, CSS/SCSS, JAVASCRIPT, Responsive)
@markarnel
Design comparison
SolutionDesign
Solution retrospective
- generates 4 random numbers
- gets percentage of 4 random numbers
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
let firstName = "Your"; let lastName = "Name"; let emailAddress = "[email protected]"; let password = "supersecret";
- instead try this,
let 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!
0@markarnelPosted over 1 year ago@0xAbdulKhalid Thank you for your recommendation I will keep this in mind! :)
0@0xabdulkhaliqPosted over 1 year ago@markarnel Glad you found the feedback helpful ! π€
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