WGU C777 WEB DEVELOPMENT LATEST EXAMS
ACTUAL QUESTIONS AND ANSWERS SURE A+
✔✔pattern understanding
.*$ - ✔✔in a string of any characters
comes at the end
✔✔pattern understanding bonus round
.
^
\d
\D
\s
x(?=y)
! - ✔✔. matches any single character from class
^ negated [^ 0-8] looks for a 9
^ can also match the beginning of an input
\d any digit **
\D any character **
\s space
x(?=y) lookahead xy is valid but xz not **
! negative/not i.e x(?!y) xz is valid xy is not **
, remember this **
https://developer.mozilla.org/en-
US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet
✔✔confused with ^?
^[^A]
/^A/ - ✔✔^[^A] looks for something that does not start with A
/^A/ looks for something that starts with A
✔✔+ vs * - ✔✔+once or more
*0 or more
✔✔Event Handler section
What are event handlers - ✔✔onClick, onFocus, onBlur etc. Describes the event
happening when the user interacts with forms or input elements
remember this
✔✔form validation code example - ✔✔<form name="myForm"
action="/action_page.php" ***name and action (goes to new page)
onsubmit="return validateForm()" ***Event handler. remember the ()
method="post"> ***Post or get (how is is submitted) know the difference
Name: <input type="text" name="fname"> ***what is the input type, her its text
<input type="submit" value="Submit"></form> ***this is the submit type and the form
close bracket
✔✔What is the event handler part of the code:
<INPUT TYPE="button" VALUE="Calculate" onClick="compute()"> -
✔✔onClick="compute()"
remember this
✔✔When the browser's width is 600px wide or less, hide the div element - ✔✔@media
screen and (max-width: 600px) {
div.example {
display: none;
It disapears when under the max width
remember this
✔✔What is AJAX? - ✔✔Read webserver after its loaded
Update a web page without reloading
Send data to the server in the background
AsynchronusJavascriptAndXml
For example you click/hover over a button and new info appears without the page
having to load. Think of a nav bar that drops down.
✔✔jQuery Syntax - ✔✔.what(where)
ACTUAL QUESTIONS AND ANSWERS SURE A+
✔✔pattern understanding
.*$ - ✔✔in a string of any characters
comes at the end
✔✔pattern understanding bonus round
.
^
\d
\D
\s
x(?=y)
! - ✔✔. matches any single character from class
^ negated [^ 0-8] looks for a 9
^ can also match the beginning of an input
\d any digit **
\D any character **
\s space
x(?=y) lookahead xy is valid but xz not **
! negative/not i.e x(?!y) xz is valid xy is not **
, remember this **
https://developer.mozilla.org/en-
US/docs/Web/JavaScript/Guide/Regular_Expressions/Cheatsheet
✔✔confused with ^?
^[^A]
/^A/ - ✔✔^[^A] looks for something that does not start with A
/^A/ looks for something that starts with A
✔✔+ vs * - ✔✔+once or more
*0 or more
✔✔Event Handler section
What are event handlers - ✔✔onClick, onFocus, onBlur etc. Describes the event
happening when the user interacts with forms or input elements
remember this
✔✔form validation code example - ✔✔<form name="myForm"
action="/action_page.php" ***name and action (goes to new page)
onsubmit="return validateForm()" ***Event handler. remember the ()
method="post"> ***Post or get (how is is submitted) know the difference
Name: <input type="text" name="fname"> ***what is the input type, her its text
<input type="submit" value="Submit"></form> ***this is the submit type and the form
close bracket
✔✔What is the event handler part of the code:
<INPUT TYPE="button" VALUE="Calculate" onClick="compute()"> -
✔✔onClick="compute()"
remember this
✔✔When the browser's width is 600px wide or less, hide the div element - ✔✔@media
screen and (max-width: 600px) {
div.example {
display: none;
It disapears when under the max width
remember this
✔✔What is AJAX? - ✔✔Read webserver after its loaded
Update a web page without reloading
Send data to the server in the background
AsynchronusJavascriptAndXml
For example you click/hover over a button and new info appears without the page
having to load. Think of a nav bar that drops down.
✔✔jQuery Syntax - ✔✔.what(where)