Intro to programming and variables Binary and operations Loops and arrays Functions and objects Conditional statements and user interaction
100
program
What is a group of instructions that a computer follows?
100
+, -, *,/
What are the four math operators we learned?
100
infinite
How many times will
while(true){
alert("hello");
}
Pop up with hello?
100
function name(parameter){
//code
}
How do you create a function?
100
Make a pop up on the screen
what does an alert do
200

How is a header tag defined? (Opening and closing)
200
Zeroes and ones
What makes up binary numbers?
200
true
The condition must be ______ for the code block to execute.
200
Functionname( );
How do you call a function?
200
false
An else statement code block will only run if the if statement condition is
300

//comment
/*
Comment
*/
How do you write the two different types of comments in JavaScript?
300

Byte
8 bits makes a _________.
300
twice
How many times will this for loop execute?
for(var i= 0; i <2; i++)
300
var name = new Object( );
How do you initialize an object
0
<, >, ==, <=,>=, !=, &&,
What are the logical operators
400
Console.log( );
What JavaScript statement will print out to the console?
400
100110010
What is..
10010001
+10100001
400
1
What is index in the array is cat?
var animals = [dog, cat, ardvark, fish];
400
Fred.name = "Fred";
Add the property name = Fred to object Fred
400
Console.log( );
What JavaScript statement do you have to click F12 to view what prints out? (Or right click inspect)
500

Type, name, value
What are the three parts to a variable? Give an example with an integer
500
2
The way we count (1,2,3,4..,10) is base ten.
So binary is base ...?
500
var numbers = [1,2,3,4,5];
Define an array numbers with the numbers 1-5.
500
function greeting(hello){
alert(hello);
}

greeting("hello");

Write and call a function with the called greeting that has an alert for its the parameter "hello"
500
if(condition){
}else if(condition){
} else {
}
Write an if, else if, and else statement






Coding 101

Press F11 for full screen mode



Limited time offer: Membership 25% off


Clone | Edit | Download / Play Offline