今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Password strength
(electronic chiming) - Regular expressions or regex are sequences of characters that define a pattern in a string. We can use regular expressions to do things like remove certain characters in a string, or check whether a string matches a set of criteria. In this challenge, you'll build a password validator for a signup form which tests whether or not a user's desired password is strong enough. You must use a regular expression in your solution. If the user's password is strong enough, return the string, your password is valid. Otherwise, return the string, your password is invalid. You must also use a ternary operator to return a boolean value. Ternary operators check to see if a certain condition has been met. We follow the expression we want to check with a question mark, and if the condition is truthy, it will execute the code following the question mark. The truthy expression is followed by a colon and…
内容
-
-
-
Available books6 分钟 11 秒
-
(已锁定)
Movie object5 分钟 29 秒
-
(已锁定)
Vegetarian dinner3 分钟 11 秒
-
(已锁定)
Technical books2 分钟 33 秒
-
(已锁定)
Private object2 分钟 13 秒
-
(已锁定)
Ticking time2 分钟 17 秒
-
(已锁定)
Classroom attendance3 分钟 14 秒
-
(已锁定)
Dynamic colors4 分钟 15 秒
-
(已锁定)
Coffee calculations3 分钟 21 秒
-
(已锁定)
Food truck3 分钟 4 秒
-
(已锁定)
Train generator3 分钟 31 秒
-
(已锁定)
String permutation3 分钟 11 秒
-
(已锁定)
Five friends3 分钟 43 秒
-
(已锁定)
URLify3 分钟 55 秒
-
(已锁定)
Password strength4 分钟 58 秒
-