Today we had an assignment to work in pairs of 2 and we would be either the driver of the code or the scribe and then switch. The driver would tell the scribe the exact code he or she would want written and then vice versa (see pic below)
The only correction I would have made was to create a constructor function for the rectangles and it would eliminated some line of code in the top. A constructor function is a template to be able to make more objects without having to write more lines of code. It is a special function to make objects for you.
We also learned about loops, Boolean variables, and conditional statements. Conditional statements are code that has specific conditions that need to be met for the action to be executed. 
In this example (see pic above) there is a conditional if else statement which says as long as these parameters are met do this if anything else do something different. The next is for and while loops (see pic below)
A for and while loop is a method for counting and repeating a task. So while the variable is true, it will keep repeating the instructions that it was given. Lastly we went over Boolean variables (see pic below) .
A Boolean variable is a data type which functions as long as the values are true. They are used for conditional testing. In the picture above if the mouse both on the x and y axis met certain conditions and it was true, then color would change in the rectangle. It is for instructions to be executed or not depending on its validity.