Group Chat Week 2

This week, you started to take your first steps in the world of JavaScript, learning about variables, data types, operators, and functions.

As usual, we’ll go around in a circle, and you can talk about what’s been going on for the past week. We’ll also do a little debugging of some JavaScript code at the end!

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

Week 2 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-2 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! How good does your website clone look?

Group Exercise | 20-25 minutes

All of these code snippets have bugs in them, and aren’t working as expected. Can you figure out what’s going wrong for each of them, and correct them so that the output shows up as expected in the console?

Go through each exercise one-by-one. Give yourselves 2 minutes to take a look at it, see if you can make some changes to get it to work, and then discuss it as a group:

  • Why doesn’t this code output “Hello Adam!” to the console (right hand side of the screen)?
  • Why does this code only output “Hi”, rather than saything the user’s name too?
  • Why does this code end up logging undefined to the console?
  • Why doesn’t this code correctly calculate (((1 + 1) + 2) * 3)?

(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.