Design comparison
Solution retrospective
Which areas of your code are you unsure of?
- I tend to use helpers like sweetalert to achieve the JS function. But, it would take me time if I would build scripts from scratch.
Community feedback
- @NatureSon22Posted about 1 year ago
In your code, I noticed that you are using the var keyword as a data type. However, I advise against using var because it can lead to scope-related issues. It's better to use let or const instead.
let is limited in scope, which means it's accessible only within the block of code it's defined in. On the other hand, const is ideal for storing values that won't change, which is why it's called "constant."
The issue with using var is that it can sometimes have a more global scope, potentially causing difficult-to-identify errors.
Marked as helpful0@ShinjiX-WebPosted about 1 year ago@NatureSon22
Yep, thanks for the feedback. I am fully aware of it. But, just didn't do it for this project but yeah, I corrected it already. Thanks
0@NatureSon22Posted about 1 year agoHey @ShinjiX-Web, I realized I didn't need to say that. You seem really experienced with your solutions. I've checked out your code and learned a few things from it. I'll definitely be following your repository :>
1@ShinjiX-WebPosted about 1 year ago@NatureSon22
No, that's okay, you did the right thing. I appreciate it. It's nice to know you picked up few things from it. I could learn as well from you too. I am not really experienced yet, I am still learning...
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