Answers.
What is a variable? - CORRECT ANSWER We are telling the computer to create a little space in memory
and give it a name because we want to store something there (containers for storing data)
Boolean variable - CORRECT ANSWER A variable having only two possible values, such as HIGH/LOW,
1/0, On/Off, or True/False.
system variables - CORRECT ANSWER Variables that can be manipulated to increase (or decrease)
eyewitness accuracy (Variables that are already in the p5.js)
Rules to naming variables - CORRECT ANSWER The first character must be a letter or an underscore
You can't use a number as the first character
The rest of the variable name can include any letter, any number or the underscore
You can't use any other characters including spaces, symbols, and punctuation marks
variable names are case sensitive
no length limit to the variable name
you can't use one of Javascript's reserved words as a variable name
Code Block - CORRECT ANSWER Code that is contained within an opening and closing curly brace
, JavaScript Objects - CORRECT ANSWER A way to organize variables, it is like creating a master variable
that holds lots of internal variables
Binary - CORRECT ANSWER Two states, true or false, on or off, 1 or r0
Relational operators - CORRECT ANSWER Equal to ==
Not equal to !=
Greater than >
Greater than <
Greater than or equal to >=
Greater than or equal to <=
Logical operators - CORRECT ANSWER And &&
Or ||
Not !=
What is the difference between a class and an object? - CORRECT ANSWER A class defines the object
When I create an object from a class it is called - CORRECT ANSWER An "instance" of the class
When called, what does a "constructor" function do? - CORRECT ANSWER It creates an instance of the
class