Multi-Step Form Using Html, CSS and JavaScript
Design comparison
Solution retrospective
I'm most proud of the significant improvement in my JavaScript skills that I achieved throughout the development of our multi-step-form solution. By tackling complex problems and actively seeking to expand my knowledge, I was able to implement various functionalities with confidence and efficiency.
About what to do differently next time, Reflecting on my experience, I realize that there are areas in which I could optimize my code further, particularly in the structure of loops and functions. Next time, I would approach writing my loops and functions with a greater emphasis on readability, modularity, and performance. This could involve breaking down complex tasks into smaller, reusable functions, and adopting more concise and efficient loop constructs to enhance the overall maintainability and scalability of the codebase.
What challenges did you encounter, and how did you overcome them?While working on linking sections together using the forEach method with the next button in our multi-step-form solution, I encountered a persistent bug that prevented the event listener from being called, resulting in an error message. This bug hindered the smooth transition between sections and compromised the overall user experience. To address this issue, I began by carefully reviewing the relevant portions of my JavaScript code, paying close attention to the implementation of the forEach method and event binding with the next button. Through systematic debugging, including thorough examination of console logs and stepping through the code execution with breakpoints, I was able to identify a syntax error and incorrect scope usage within the event listener callback function. Once I corrected these issues and ensured proper event binding, the bug was successfully resolved, and the sections were seamlessly linked together as intended.
Community feedback
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