What is the root element of an HTML document?
What is a function that the processing tier does not handle in a three-tier client/server system?
What is an example of an invalid identifier?
What is a library?
Write a simple function that contains name, params, and function braces:
Explain the difference between prefix and postfix operators, and provide an example of each.
Prefix: If used prefix with operator before operand (i.e., ++Cameron), then it returns value after incrementing.
Postfix: If used postfix, with operator after operand (i.e., Cameron++), then it returns the value before incrementing.
Explain the usage of a ternary operation.
If condition is true, the ternary operator will return the value of the first expression; otherwise, it returns the value of the second expression. Basically, a short-hand inline if else statement.
What property returns the number of elements in an array?
What is an example of a statement that always execute at least once?
The statement halts a looping statement and restarts the loop with a new iteration.
Explain what causes an infinite loop, and what you can to do ensure that your programs do not contain infinite loops.
An infinite loop is a sequence of instructions in a program which loops endlessly, either due to the loop having no terminating condition, having one that can never be met, or one that causes the loop to start over. To avoid, add terminating conditions that can be met.
What does an else if statement replace? What are the advantages of using an else if statement?
The advantage of an ELSE IF, …, ELSE type structure is that the program stops checking further conditions if a condition is fulfilled. Multiple IF statements would work, however, it would continue to check the IF over and over again which isn’t very optimal. It could replace multiple IFs essentially.
What type of error occurs when the interpreter fails to recognize code?
What errors are problems in the design of a program that prevent it from running as you anticipate?
The watch list in browser debugging tools lets you monitor the value of what during program execution?
Each item in the DOM tree is known as a what?
How do you increase the likelihood that a new window you create with the window . open() method will open as a new window rather than a new tab?
specify a height and/or a width value.
The properties of which object describe a user’s browser?
What value of the selectedIndex property of a select object corresponds to no selection?
Which event do you use to call a function when a user selects a field or moves the insertion point into a field?
Which of the following properties has a value of true when a user has left a required field blank?
Explain how to check if any option button in a set is selected.
You could create and if condition using && operator to check against .checked.