Data Types | Conditionals | For Loops |
---|---|---|
Numbers, Strings, Boolean, Null, Undefined, Symbols,
What are the primitive data types?
|
Conditionals execute a statement if a specified condition is truthy. If the condition is falsy, another statement can be executed.
Define conditionals.
|
Nested loops, they are dangerous because they can decrease your code efficiency by magnitudes.
What is a loop (or many loops) inside a loop called and why is it dangerous?
|
Arrays, Objects, Functions
What are the Non-Primitive data types?
|
false
What is the boolean value of undefined?
|
It repeatedly executes a block of code until a certain condition is met.
Define what a for loop does.
|
.slice, .length, .replace, .toUpperCase(). toLowerCase()
Name 3 string methods.
|
true
what does 'String'.length > 5 evaluate to be?
|
a starting point, max value, and incrementation amount
When defining a for loop what are the three features that go within the parenthesis?
|
"d"
What does ["Bohemian Rhapsody", "Killer Queen", "Bicycle Race", "Good Old Fashioned Lover Boy"][3][3] resolve to be?
|
true
What does "Hello World".indexOf('e') > -1 evaluate to be?
|
The accumulator pattern
What is the name for a loop that contains a variable which we will repeatedly add to based on desired conditions.
|
1
What does "HelloWorld".indexOf("GoodByeWorld"[6]) resolve to be?
|
less than, greater than, greater than or equal to, less than or equal to, strictly equals, strictly does not equal, abstractly equals, abstractly does not equal, logical and, logical or
Name 8 comparison operators
|
let x = 0;
x++; x += 1; x = x + 1;
Name 3 ways of increasing a variable by 1.
|