JS Intro
JS Variables/Conditional Statements/Error
JS Conditional Statements/Error
JS Dialog Boxes
JS Loops
100

Function to write text to a web page

What is document.write?

100

Tag to embed JavaScript.

What is <script>

100

This JavaScript method displays a dialog box that prompts the user for input.

What is prompt()?

100

The main purpose of this dialog box is to give a warning message to the users

What is an alert dialog box?

100

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?

200

A JS function is defined with this keyword.

What is function?

200

This comparison operator tests for equality


What is ==

200

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,

200

 This dialog box requires a variable to store the response 


What is a prompt dialog box?


200

Each cycle the loop is executed is referred to as an 


What is an iteration?

300

Computer languages that are run and interpreted by the user's browser.

HTML, CSS and JavaScript

300

Keyword used to declare variables.

What is var/let 

300

This conditional allows you to perform different actions for different conditions.


What is an " if - else if - else statement"?

300

The problem with this code is:
     <script>
           alert("Have a nice day!")
     </script>

What is a missing semicolon?

300

This loop loops through a block of code as long as a specified condition is true.  

What is a while-loop?

400

Name two languages  that run on the server  

What are PHP, Node. js, Java, Ruby, Perl, and Python?

400

Any two comparison operators 

What is a > , < or == 

less than or greater than 

400

Single line comments start with 

Or a Multiline comment 

What is // /*           */

400

Error that ooccurs when the browser cannot complete a line of code.

What is a run-time error?

400

Name any two JavaScript DOM method to get/access elements from html.

What is

getElementById, getElementByClass, getElementByNameTag

500

Writing into the browser console, using this syntax/code


What is console.log() 

500

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?

500

If else-If statements 'statements'? are typically terminated with 

What is "else"?

500

The names of all three types of dialog boxes:

What is Alert, Confirm and Prompt?

500

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