The ! symbol stands for which logic operator?
what is a NOT logic operator?
what is create a variable named x?
ITERATION
What type of statement only has one path for true and exits if false?
what character denotes a 'new line' in JavaScript?
What is "\n"?
x = 5;
what is assign the value 5 to x?
TRAVERSAL
iteration over the items in a list.
if i start out my variable i at 0 and run the program until i<=35 is false, how many times am i looping?
What is 36 times?
What does the following operator represent?
&&
onEvent ("Id", "click"), function()
{
console.log("HELLO")
}
When the Id is clicked, shows HELLO in the console log
BOOL
a data type with two possible values
i.e. true and false, 1 and 0
What value does a condition return (in an if else statement)?
what is a boolean value?
what does the ++ symbol do to a value?
i.e. x++
what is increment the value by 1?
x <--- 5
y <--- 10
z <--- 15
assigns 5 to x
assigns 10 to y
assigns 15 to z
SELECTION
a boolean condition to determine which of two paths are taken in a program.
How do we access a list?
write down the name of the list followed by a bracket then inside the bracket indicate the index. (position in the list whose value you want to use)
i.e.
var List = [1,2,3];
List [0];
What is a string? (text)
x = 5;
if (x<3) {
console.log("yup");
} else
{
console.log("nope");
};
outputs nope to the console
PROCEDURE
a small section of a program that performs a specific task.
What are the three things that a for loop does for us in order to achieve 'looping?
define a variable for counting the amount of times looped
a condition to exit the loop
increment the counter after instructions have ran