21 - If you want to execute something when a value is false, what clause would you use (if) ? Else Clause 22 - When would you use an else/if extension (else/if) ? You could use it to solve programming programs. 23 - What will happen if your conditional statement is always true in a while loop (while) ? Something will happen over and over. 24 - What is the purpose of a counter (while) ? To see how many hits your website. 25 - What is a for loop (for loop) ? Something used to do a set of operations many times. 26 - Why would you use comments (comments) ? To copyright your code. 27 - What is an array (array) ? An array is a variable that can store many variables. 28 - What is the difference between the alert and confirm functions (alert/confirm) ? The alert just tells us the answer and the confirm lets us choose if we want to se the answer or not. 29 - What color is the bar Internet Explorer uses to allow a javascript (prompt) ? The Yellow Bar. 30 - When would you use the print function - think of a scenario on a web page (print) ? When printing a page. 31 - When would a redirect script be useful, and when should it not be used(redirect) ? It’s useful when you changed domains and it is not to be used when you want to keep your visitors on your page. 32 - If you wanted your pop-up window to be 400 x 400, not resizable, and with the display bar visible, what would be be the code string (pop-up) ?

CLICK ME TOO!

33 - If you use the date or time object, what date/time is it based off of (date) ? The system clock. 34 - When is checking for non-empty useful (form) ? If a text input is empty or not, If a text input is all numbers, If a text input is all letters, If a text input is all alphanumeric characters (numbers & letters), If a text input has the correct number of characters in it (useful when restricting the length of a username and/or password) If a selection has been made from an HTML select input (the drop down selector), If an email address is valid, or How to check all above when the user has completed filling out the form. 35 - What property stores the number of characters in the string (strings) numericExpression 36 - When is the length of the string useful (length) ? 6 37 - What could a string be useful for and what is the most important thing to remember when creating a regular expression (search) ? Knowing if something is or isn't in a string can be very important. 38 - What is the string replace useful for (replace) ? It lets you replace words that occur within the string. 39 - When would you compare one string to another (compare) ? Whenever you know about the equals operator and the Javascript If Statement.