| about | help | code help+videos | done | prefs |
You are registering for a website and the minimum password length is 8 characters. Write a method that determines if the inputted password is of sufficient length, and if it is not, state how many more characters the password requires to be sufficient. passLength("pass") → "Your password is not long enough. It must have 4 more character(s)." passLength("password") → "Your password is sufficient." passLength("trump") → "Your password is not long enough. It must have 3 more character(s)." ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy