WGU C777 COMPREHENSIVE EXAM
SCRIPT VERIFIED QUESTIONS COMPLETE
ANSWERS GRADED APLUS
◉ javaScript form validation pros/cons
Answer: slower than built in but more customizable
remember this
◉ Form Validation
a
Answer: matches one character that is a (nothing else)
◉ Form Validation
abc
Answer: matches abc. Not ab or abcd
◉ Form Validation
ab?c
Answer: Matches ac or abc. The character in front of ? is optional
◉ Form Validation
, ab*c
Answer: matches a followed by any number of b and one c
abbbbbbbc
◉ Form Validation
a|b
Answer: matches one character a or b but not ab
◉ Form Validation
[Aa]pple
Answer: matches Apple or apple
remember this
◉ Form input validation to follow a string (code line example) that
has 4 valid inputs:
Banana, banana, Cherry, or cherry. Make sure you understand why
only those four are valid.
Answer: <input id="choose" name="i-like" required
pattern="[Bb]anana|[Cc]herry" />
◉ <input ????="number"/>
Answer: type
SCRIPT VERIFIED QUESTIONS COMPLETE
ANSWERS GRADED APLUS
◉ javaScript form validation pros/cons
Answer: slower than built in but more customizable
remember this
◉ Form Validation
a
Answer: matches one character that is a (nothing else)
◉ Form Validation
abc
Answer: matches abc. Not ab or abcd
◉ Form Validation
ab?c
Answer: Matches ac or abc. The character in front of ? is optional
◉ Form Validation
, ab*c
Answer: matches a followed by any number of b and one c
abbbbbbbc
◉ Form Validation
a|b
Answer: matches one character a or b but not ab
◉ Form Validation
[Aa]pple
Answer: matches Apple or apple
remember this
◉ Form input validation to follow a string (code line example) that
has 4 valid inputs:
Banana, banana, Cherry, or cherry. Make sure you understand why
only those four are valid.
Answer: <input id="choose" name="i-like" required
pattern="[Bb]anana|[Cc]herry" />
◉ <input ????="number"/>
Answer: type