Submitted over 2 years ago
mobile-friendly advice generator app with fetch, scss and flexbox
@LuckyChimp
Design comparison
SolutionDesign
Solution retrospective
If you notice anything I can do better in the future, feel very free to let me know.
Community feedback
- @fazzaamiarsoPosted over 2 years ago
Hello LuckyChimp! Nice solution overall!
I just have a quick tips for concatenating string. You can use template literal. This will make your work easier. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
//instead of this adviceTextElmnt.textContent = '"'+adviceText+'"'; //to adviceTextElmnt.textContent = `"${adviceText}"`;
I hope it helps! Cheers!
Marked as helpful1@LuckyChimpPosted over 2 years ago@fazzaamiarso Thanks for pointing that out! This is really easier and especially with complex chains also nicer to read, I think. I'll try to use template literals only in the future. Again, thank you! :)
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