Symbols
JavaScript code What does it do?
Vocab:
Define it
Random Q
100

The !  symbol stands for which logic operator?

what is a NOT logic operator?

100
var x;

what is create a variable named x?

100

ITERATION

repetition of steps in an algorithm or program for a certain amount of times or until a certain condition is met.


100

What type of statement only has one path for true and exits if false?

What is an IF statement?
200

what character denotes a 'new line' in JavaScript?

What is "\n"?

200

x = 5;

what is assign the value 5 to x?

200

TRAVERSAL

iteration over the items in a list.

200

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?

300

What does the following operator represent?


&&

what is the AND operator?
300

onEvent ("Id", "click"), function() 

{

console.log("HELLO")

}

When the Id is clicked, shows HELLO in the console log

300

BOOL

a data type with two possible values


i.e. true and false, 1 and 0

300

What value does a condition return (in an if else statement)?

what is a boolean value?

400

what does the ++ symbol do to a value?


i.e.   x++

what is increment the value by 1?

400

x <--- 5

y <--- 10

z <--- 15

assigns 5 to x

assigns 10 to y

assigns 15 to z


400

SELECTION


a boolean condition to determine which of two paths are taken in a program.

400

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];

500
Quotation marks are used to represent this data type in JavaScript

What is a string? (text)

500

x = 5;

if (x<3) {

console.log("yup");

} else

{

console.log("nope");

};

checks boolean operator


outputs nope to the console

500

PROCEDURE


a small section of a program that performs a specific task.

500

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

M
e
n
u