Skip to content
Advertisement

Can’t display the strength of password

For my password strength checker, I am unable to display the score that I get from the password that I enter. Here is the code below, the problem is displayed all the way at the bottom of my code:

JavaScript

/** * Determine if the given string contains an upper case letter * @param s the string to check * @return true if and only if s contains an upper case letter */

JavaScript

}

JavaScript

}

JavaScript

}

Advertisement

Answer

Instead of re-implementing the tests, and you say you already have functional code – I’d prefer that, like –

JavaScript

And then call it and print the result in main like

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement