Skip to content
Advertisement

an alternative to (any) function

I’m currently working on a password validity code, but I didn’t learn the (any) function yet so I should not use it I’m looking for a different way to make the code work and check if there is lowercase, uppercase, and digits in the password. I thought about using a loop that checks each character, but I couldn’t do it since I’m still learning loops

JavaScript

Advertisement

Answer

You could just make your own any function and then use that if you’d prefer,

JavaScript

without a lambda, you need to figure out what errors have been triggered. and then use your if statement after that

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