Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

Profile card

EDOARDO PITACCIO•180
@EdoPito
A solution to the Profile card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi!! I have added some basic JS to get some exercise in, if you have any comment on the JS part of it please do comment.

I did not want to force the user to get a name,age, location otherwise we would never see the default. However I have tried that and did not succeed, so question is:

How do I get a loop of prompts that keep asking to enter something until you do? Example: let's say you press ok without entering a name the prompt would not go away and say : "You must enter a name to access the page"

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on EDOARDO PITACCIO's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License