Label variables as either Primitive
vs. Reference
Identify when to use .
vs []
when accessing values of an object
When accessing object keys: Bracket notation needs to refer to that key in quotations, dot notation doesn’t.
When accessing object keys via a variable: Bracket notation can refer to that key w/o use of quotations, dot notation can’t do this at all.
Choose the square bracket when the property name is determined at runtime, or if the property name is not a valid identifier.
Choose the dot property acccesor when the property name is known ahead of time.
Use the obj[key] !== undefined
pattern to check if a given variable that contains a key exists in an object
Utilize Object.keys
and Object.values
in a function
Iterate through an object using a for in loop
Define a function that utilizes ...rest syntax
to accept an arbitrary number of arguments
Use ...spread syntax
for Object literals and Array literals
Destructure an array to reference specific elements
Destructure an object to reference specific values
Write a function that accepts a array as an argument and returns an object representing the count of each character in the array
Differentiate between the "Driver"
and "Navigator"
roles in a pair programming session.
The Driver
: In charge of typing and asking questions, can let go or larger picture. Driver also suggests ways to improve/re-factor the code.The Navigator
: In charge of what’s being typed and maintaining project momentum. They should lead the discussion and also double check the code for errors as it is being typed.Describe at least three benefits of effective pair programming.
Prevents focusing so much on a problem that you forget to communicate with your teammates.
Statistics have shown that pair programming slow down programming time by 15% however it also reflected that the number of errors are also reduced by 15%.
Demonstrate empathetic communication and be able to explain the meaning of "You are not your code"
.
Identify negative interactions during a pair programming session.
Identify the exact steps of a/A’s pair programming process.
Partner Up
: Get your pal.Check-In
: Get to know eachother, discuss time constraints, goals, etc.Start Coding
: Drivers code, Navigators Guide.Hand Off
: App Academy employs a 15 min. interval.Follow-Up
: The last check in, this is a good time wrap up and review your code. This step helps commit your progress to memory.