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

Age calculator using vanilla Js

@DynamesLuis

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What challenges did you encounter, and how did you overcome them?

The logic used in Js to calculate age

Community feedback

Lance 1,580

@IzykGit

Posted

Looks good however the styling is broken on mobile. It does seem like you did add some styling for smaller screens however you used pixels to hard set the width and height values. You want to avoid using pixels in this way. It is far better practice to use rem or percentage(%).

A browser extension that helps me for testing my app on mobile is called Mobile FIRST. It can simulate phone screens and gives a preview of what your site will look like on a specific device.

Also in your body you have all of the main content wrapped in a section element. Make sure you wrap your main content in a <main> element for better semantics and SEO.

Hope this helps. Good luck coding!

Marked as helpful

0

@DynamesLuis

Posted

@IzykGit Ty, I will review it and put the advice into practice. Blessings!

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