Function to write text to a web page
What is document.write?
Tag to embed JavaScript.
What is <script>
This JavaScript method displays a dialog box that prompts the user for input.
What is prompt()?
The main purpose of this dialog box is to give a warning message to the users
What is an alert dialog box?
If the while-loop is not set up correctly and the testing condition is always TRUE, the loop will continue running. This is called an
What is an infinite loop?
A JS function is defined with this keyword.
What is function?
This comparison operator tests for equality
What is ==
Name any two types of common programming errors:
What are misspelled or properly cased variable names? What are mismatched parentheses or braces? What are mismatched quotes? What are missing quotes?
Syntax, logical, runtime,
This dialog box requires a variable to store the response
What is a prompt dialog box?
Each cycle the loop is executed is referred to as an
What is an iteration?
Computer languages that are run and interpreted by the user's browser.
HTML, CSS and JavaScript
Keyword used to declare variables.
What is var/let
This conditional allows you to perform different actions for different conditions.
What is an " if - else if - else statement"?
The problem with this code is:
<script>
alert("Have a nice day!")
</script>
What is a missing semicolon?
This loop loops through a block of code as long as a specified condition is true.
What is a while-loop?
Name two languages that run on the server
What are PHP, Node. js, Java, Ruby, Perl, and Python?
Any two comparison operators
What is a > , < or ==
less than or greater than
Single line comments start with
Or a Multiline comment
What is // /* */
Error that ooccurs when the browser cannot complete a line of code.
What is a run-time error?
Name any two JavaScript DOM method to get/access elements from html.
What is
getElementById, getElementByClass, getElementByNameTag
Writing into the browser console, using this syntax/code
What is console.log()
Most difficult to fix and sometimes require you to meticulously trace every step of your code to detect a mistake.
What is a logical error?
If else-If statements 'statements'? are typically terminated with
What is "else"?
The names of all three types of dialog boxes:
What is Alert, Confirm and Prompt?
Name two of the three elements of a for loop
What is a counter variable, continuation condition, and counter?
counter
check condition
increment the counter