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

Responsive Sign Up Landing Page

@ShinjiX-Web

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

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

Nature Son 1,100

@NatureSon22

Posted

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 helpful

0

@ShinjiX-Web

Posted

@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
Nature Son 1,100

@NatureSon22

Posted

Hey @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-Web

Posted

@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 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