- How to declare, initialize, and reassign variables
- The
number
andstring
data types and how to convert between them - The mathematical operators (
+, -, *, /, **, %, ++, --
) and order of operations - The
typeof
keyword and how to collect user input withreadline-sync
- Welcome to Day 1
- Prep work for this lesson was assigned prior to the first day of class.
- Welcome! First day pep talk
- Lesson 2 prep work should be active by the end of class.
-
Use Canvas to access course content.
-
Have a repl.it account:
- Review workspace panels and important menu items (this can be done in the live coding examples).
- Use the link posted in Canvas to enroll in the GitHub Classroom.
-
Set expectations for students:
-
Part-Time Students
- Do ALL of the prep work before class.
- Ask questions often.
- Make use of the help and resources available.
-
Full-Time Students
- The class design allows for in-class work time.
- Prep Work time is for reading, concept checks, and working on exercises
- Work days are for Assignments or catching up on work
- Ask questions often.
- Make use of the help and resources available.
- The class design allows for in-class work time.
-
-
Introduce the TFs and assign groups (may be done during the studio intro).
-
Other relevant contact information.
let
vs.const
. When should each be used?- Discourage the use of
var
. If students want to know more technical details as to why we won't be usingvar
, that topic is covered in the chapter on scope. +=
,-=
, etc. can be used as a shortcut (e.g.num = num + 3
vs.num += 3
).- Modulus
- This is likely a new idea for many of the students. Provide a clear, deliberate explanation (with examples) of what it does.
- Why would we need to use
%
? Don't get too detailed yet, but note some simple scenarios where it might be necessary. The students do not knowif/else
yet, so keep your explanation non-code specific.
- Walk through the syntax and how to use
readline-sync
to collect user input from the console.- Tell them more about what the console is and remind them about where to find it in repl.it.
- Live coding examples.
- Overview of how studio sessions run and how to best take advantage of the time.
- Tasks will be completed in repl.it classroom.
- Studios provide focused practice in a supervised, safe space. Students are free to explore, make mistakes, and ask for tips.
- Studios are NOT graded, but active participation is essential for success in the class.
- Remind students to have their TFs check their code in order to get feedback.
- Provide a quick introduction to the Data & Variables studio.
- Note that the large group will meet again before the end of class to review the studio task.
- Part-Time Students: Graded Assignment #1 is open! With each of the six graded assignments in Unit 1, the key is to read through everything carefully and start on what you can do as soon as possible. In class, read through the instructions with your students and highlight what they are capable of doing after this class.
- Graded Assignment 1 has been broken into 3 parts.
- Full-Time Students: Graded Assignment 1 will be introduced and open on Day 5.
- Check in with EVERY student during EVERY studio.
- This builds relationships and trust, and it helps you spot potential issues before they get too large.
- Checking in does NOT mean a quick question like, "How are you doing? Need any help?" Instead, sit next to the student and ask specific questions about their code, their interpretation of the instructions, or their coding dreams.
- Provide detailed feedback as often as possible. "Good job!" does not cut it. An example would be "Hey! I like your variable names! They are very descriptive!".
- Be prepared to clarify the studio instructions beyond just re-reading the words on the screen.
- Encourage students to work together and share ideas.
- Assist individuals as questions arise. Address frequent mistakes and/or questions to your whole group.
- Make a note of any issues that occur during the studio and provide that feedback to the instructor and LaunchCode team.
- Help students successfully navigate to repl.it Classroom and find the Data and Variables studio.
- Encourage best practices for variable names.
- Studios are NOT graded, but for this first task, you should do a visual check of each student's output.
- The best time to do this is during the studio!
- If a student does not finish by the end of class, they should complete the studio at home and click "Submit". You will be able to check their code from within repl.it.
- Common mistake:
- Some students will miss the idea of using variables to create the output. Instead, they will hard code the data values into the
console.log
statements. - Encourage the students to use variables, and explain that doing so allows the output to reflect any changes in the data.
- When the students run their code for you, ask them to change
astronautCount
to a different number (like 3), and then verify that the output reflects the new value.
- Some students will miss the idea of using variables to create the output. Instead, they will hard code the data values into the
- Recognize any clever ideas that the students use to print the tedious parts of the output.
- Even though you do a visual check of the code, students should still click "Submit" when they finish the studio. That way, they preserve a record of their participation.