Login Validation


How to validate email and password and checkbox. Give me a sample code for better.

Thank you.

function validatePassword () {
    if (password.value === "expectedPassword") {
        return true;
    return false;

good one.

But, i need full code include email and checkbox for better.

Thank you :slight_smile:

You cannot rely on others to write all your code for you. Getting help to understand concepts and best practices is the right way to learn something - otherwise you won’t learn anything. :slight_smile:

Thankfully people here in the forum are pretty helpful, but their patience will not last forever if you just demand more free code from them. To add to this, most of the things you’ve asked about are already documented in the Fuse documentation or are elementary JavaScript concepts.

A better approach for you would be to thank people for their help and then proceed to learn these things for yourself. :slight_smile: