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

All solutions

  • Submitted


    I am having difficulty with the code below, the scenario is:

    Case: Invalid value is being calculated when entered.

    I wanted the years, months, and days value to update to -- when an invalid date is entered.

    if (isNaN(intValue) || intValue < min || intValue > max) {
            displayErrorMessage(errorElement, errorMsg);
            applyErrorStyle(input);
            hasErrors = true;
    
    	// Does not work
    	$("#years").text("--");
    	("#months").text("--");
    	$("#days").text("--");
    }
    

    Let me know what you think! Thank you!

  • Submitted


    Working with this challenge, I have learned how to create a basic form validation system using JavaScript, HTML, and CSS.

    I used regular expressions to validate email addresses and display specific error messages.

    const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$/;

    What other ways to validate email that covers many test cases? I am open to any alternative solution for email validation, thank you!

  • Submitted


    I learned how to fetch JSON data from a local source using FETCH from JavaScript, enabling me to dynamically load and display information. Additionally, I discovered how to apply gradient backgrounds using CSS. Moreover, I acquired knowledge of responsive web design by utilizing the power of Flexbox and media queries.

    Let me know your thoughts regarding my solution! Thank you.

  • Submitted


    Thank you for the commenters on my first solution from the QR Code Component challenge, I applied them to this challenge and enjoyed learning properly.

    For this, I used a CSS pre-processor which is LESS, let me know if you have already encountered or used a client-side script for Sass/SCSS, it would be a great help!

  • Submitted


    I am unsure of using div for everything, for an experienced frontend developer, what would you use instead of div?