Learning Objectives
- Simplify Repetitive Tasks with Loops
- Working with ‘for’ Loops
Lesson Materials
If you are using Odin as your primary learning materials:
The following material is an excerpt from The Odin Project – Fundamentals Part 4. That section also covers arrays, which you will be learning next week, and Test Driven Development which will be covered later in this class. You can use the link to preview the array and test driven development content this week if you like, but the main information you need for this week is in the following excerpt:
Loops
Computers don’t get tired, and they’re really, really fast! For that reason, they are well suited to solving problems that involve doing calculations multiple times. In some cases, a computer will be able to repeat a task thousands or even millions of times in just a few short seconds where it might take a human many hours. (Obviously, speed here depends on the complexity of the calculation and the speed of the computer itself). One way to make a computer do a repetitive task is using a loop.
- Read this MDN article. It’s a longer one, but make sure you tackle the ‘Active Learning’ sections at the bottom of the page.
- Once again, same info, slightly different context from JavaScript.info. (Skim the info if you think you know it all, but don’t forget the tasks at the end of the page. You learn best by doing.)
If you are using Treehouse as your primary learning materials, please go through the following courses in treehouse:
- JavaScript Loops (76 minutes)
Assignments
Coding Assignment
Your assignment for this week can be found here. When the link opens you will need to fork the repo (click the fork button). And then follow the instructions in the file created to do your assignment. You will then turn in your forked link once you have finished all of the questions in the assignment.
Mindset Assignment
The field of software development is constantly growing and changing—new programming languages, libraries, tools, and best practices are coming out all the time—and what is possible in technology is fueled by the curiosity and open-mindedness of programmers to learn and experiment with new things.
For this week’s mindset prompts we’re going to focus on developing a practice of learning as a way to grow and evolve your technical skills. Here’s a brief episode of Developer Tea that we think gets to the core of good learning habits.
– In your own words, what does it mean to be curious about something?
– What’s one thing that you were curious to learn more about recently (this doesn’t need to be coding-related)? How did you learn more about it?
– What’s one best practice you’ve learned in your first few weeks at CTD that you don’t know “the why” behind? How can you find out “the why”?
When you’ve completed your Coding Assignment, and have read and thought about the mindset questions above, submit ALL of your assignments (link to your code on replit.com and mindset) using the Homework Assignment Submission Form.