Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Calculator app using Scss

a13g24 40

@a13g24

Desktop design screenshot for the Calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


One question I have is the structure of your scripts. I'm used to programming in Java and C++/C. In those languages you have a main function that calls everything else. I'm still figuring out how to be more organized with my script. I've seen some js people make a main function that calls everything else. Others use more complicated modular features of the language that calls everything else. Any readings or advice you might have on how to better structure my js is appreciated.

The other question is the use of the DOMContentLoaded event. I remember some other tutorials would put their entire script inside the callback for this event. I don't think that matters if one uses the defer keyword in tags in the HTML file using the script. Is that true?

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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