Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
7
Comments
1
P

Cassidy

@CMac450160 points

Hey everyone! I'm an Associate Software Developer with two years of experience. My main focus is full stack applications using .NET, C#, Angular, and T-SQL.

I’m currently learning...

I'm currently learning React and focusing on re-strengthening my foundation in HTML, JavaScript, and CSS.

Latest solutions

  • Advice generator with Express proxy server to call api

    #express#node#react#vite#fetch

    P
    Cassidy•160
    Submitted 4 months ago

    0 comments
  • Responsive Vanilla Room Homepage


    P
    Cassidy•160
    Submitted almost 2 years ago

    0 comments
  • Multi-Step Form with React and DOM Manipulation

    #react#vite

    P
    Cassidy•160
    Submitted almost 2 years ago

    0 comments
  • React Advice Generator


    P
    Cassidy•160
    Submitted about 2 years ago

    2 comments
  • React Newsletter Sign Up

    #react

    P
    Cassidy•160
    Submitted about 2 years ago

    0 comments
  • Age Calculator App

    #react

    P
    Cassidy•160
    Submitted about 2 years ago

    0 comments
View more solutions

Latest comments

  • Taiwo Leshi•280
    @demi05
    Submitted almost 2 years ago

    Age Calculator App using Tailwind CSS

    #tailwind-css
    1
    P
    Cassidy•160
    @CMac450
    Posted almost 2 years ago

    I made an array to hold known leap years starting from 1952 up until 2020. If the value of the year input was included in the leapYears array, the month value was 2, and the day value was greater than 29, then the entire date would be flagged as invalid.

    If the 'years' value was not included in 'leapYears', the 'month' value was 2, and the 'day' value was greater than 28, then the entire date would be flagged as invalid as well.

    const leapYears = [1952, 1956, 1960, 1964, 1968, 1972, 1976, 1980, 1984, 1988, 1992, 1996, 2000, 2004, 2008, 2012, 2016, 2020];
    
    let isDateValid = false;
    
    let day = userInputDay;
    let month = userInputMonth;
    let year = userInputYear;
    
    if(leapYears.includes(parseInt(year)) && parseInt(month) === 2 && parseInt(day) > 29 {
        isDateValid = false;
    } else if(!leapYears.includes(parseInt(year)) && parseInt(month) === 2 && parseInt(day) > 28 {
        isDateValid = false;
    }
    
    //"isDateValid = false" = show date error
    

    Let me know if this helped you in any way. Great work with your solution!

    Marked as helpful

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

Frontend Mentor

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

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

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub