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 Article Preview Component using HTML, CSS, and JavaScript

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


My Javascript code is messed up. How can I get it more readable and short?

Community feedback

@GerriEzeocha

Posted

Great work Juanire! What issues are you having with with your Javascript? On your preview site the toggle function is working! In terms of shortening your code, perhaps use css to change your mobile/share section and simply work on displaying with Javascript. :)

0

@jun-edris

Posted

@GerriEzeocha For javascript, is there a way to make it more shorter. It looks like juggled/spaghetti code. Thank you very much for suggesting BTW. I'll do my best. God bless.

0

@GerriEzeocha

Posted

@jun-edris Ha! there probably is, but I'm not a pro with Javascript yet. As long as you understand your logic/code! Keep working at it :)

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