Create a function named verifyPassword
that takes a single string parameter, password, and verifies if it meets the following criteria,
- Contains at least one uppercase letter (A-Z).
Error Message: The password needs at least one uppercase letter
- Contains at least one lowercase letter (a-z).
Error Message: The password needs at least one lowercase letter
- Contains at least one digit (0-9).
Error Message: The password needs at least one digit
- Contains at least one special character from the set: !@#$%^&*()_+-=[]{};':"\|,.<>/?.
Error Message: The password needs at least one special character
- For a valid password, the function logs: "The password is valid."
- For an invalid password, the function logs: “The password is invalid.”, followed on the next line by all the required error messages specifying the unmet criteria, joined by a comma (,).