I implemented the length check into the first if statement. I know it was asking for a nested if but I am sure it works. The only thing though is that I won’t be able to display a unique message if the input length is too short which I might change.
Privacy & Terms