Design comparison
SolutionDesign
Solution retrospective
Feedbacks are always appreciated thank you!
Community feedback
- @fazzaamiarsoPosted over 2 years ago
Hello Abhi Shek! Nice solution!
I have a quick tip for you.
When dealing with string concatenation, you can use template literal. Here is the implementation.
//instead of ratingTxt.innerHTML = "You selected "+e+" out of 5"; //do this ratingTxt.innerHTML = `You selected ${e} out of 5`;
Here is the documentation https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
I hope it helps! Cheers!
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