Design comparison
Solution retrospective
Hi there,
I have done it ! I am quite happy with myself to actually finish the challenge.
This was my very first DOM Manipulation challenge, so it really took me a while to get there.
This was a great challenge and really tested my knowledge on some area. So a lot of reading was involved.
Although, I couldn't quite figure out why I need to include document method such as "let myBill = document.........value" inside my function on not just apply a variable name to it and just use that variable in my function. It seemed to only accept it that way ?
Thank you for any feedback you would give me, I appreciate your effort !
Sophie
Community feedback
- @Xavier192Posted about 3 years ago
Hi, first up, it looks great, and sorry about my english. I have some advice (I can be wrong):
- Try to use <header> <main> <section> landmarks in contact with body for html5 standards.
- When you want to change the css using javascript apply classes or ids to html, don't use the style property (encapsulation).
- Don't use globals in javascript, they can be accessed from other javascript files and rewritten, use the Module Pattern.
- Put script tag in head you can use defer attribute.
- Try to use *{} selector for css reset or use normalize.css.
- Try to use mobile first approach for css (You can use desktop first but I personally prefer mobile first).
- Limit the input numbers in a range 0-999999 for example.
- Center the card you can use flex, grid, or transform.
- Use a css methodology, BEM is good.
PD: document.something references your HTML document, So you select something from your html document.
Marked as helpful0@sophieQuinPosted about 3 years ago@Xavier192 Thank you so much for your very detailed feedback. I am getting into this afternoon!
Sophie
0 - @yeisonreyes07Posted about 3 years ago
Hello! I see two issues what, i tell first this app don't finish the calcule right for example if you want calcule the 50 porcent in a tip for 100$ divide bethwen 2 person this result total is 150 and too I would like to see the calculator in the center and middle the screen
Congratulations for you project and keep learning if you want realize a feedback in me profile https://www.frontendmentor.io/solutions/tip-calculator-app-in-spanish-with-react-js-NHLLlucxd
Thanks!
Marked as helpful0
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