Group Chat Week 5

This week, you learned a lot of new syntax for JavaScript to make your life easier, you were introduced to Object Orientated Programming, and you learned how to load data from a server.

As usual, we’ll go around in a circle, and you can talk about what’s been going on for the past week. In this circle’s exercises, we’ll be practicing all of this with some simple problems.

The person whose first name is first alphabetically should lead the discussion.

Week 5 Reflection | 20-30 minutes

Go through each member of the group, and answer the following questions:

  • What did you find the most challenging this week, or what did you not understand?

    • Can anyone else in the circle give an explanation based on their own understanding?
    • If not, make a message in the week-5 channel on the Discord, and Adam will answer it.
  • Did you start the homework already? How far did you get through it?

    • If you already finished it, then show off your work! Did anyone complete an e-commerce site!?

Group Exercise | 20-25 minutes

Go through each of the following code snippets one-by-one. Give yourselves 2 minutes to take a look at it, see if you can crack the answer by yourself, and then compare your answer with the others!

  • How would we rewrite this code with the ternary operator?
  • How would we rewrite this code with the Array.forEach prototype method?
  • How would we rewrite this code using a class?
  • What will running this code output and why?
  • What will running this code output and why?

(Solutions here)

Attendance Form | 2 minutes

Once you’re done with this, please fill out this form to let us know that you were here.