Week 4: Data Structures
Main Objective: Learn to create and manipulate structures to organize larger and more complex data.
Lessons:
Project:
Follow the project instructions as best you can. You can ask for help from your team or the tutors, if needed, but make sure you're submitting your own work.
Assessment:
Go to your cset
repo on GitHub and create a new file in the 105
folder called assessment-4.md
. Add your answers to the following questions to the file and "commit" them to GitHub. Here are the guidelines if you forget them.
- After completing the first course, how would you rate yourself? Is there anything you want to do differently to start the next course?
- The Weresquirrel program showed many uses for JavaScript Objects and Arrays. Using variables and values from this example, explain the difference between the two data structures.
- Now explain why the author chose to use one structure over the other for each example you chose. Follow the same reasoning and explain how you could have used objects and arrays in your adventure game from last week.
Reference:
More Resources:
- Codecademy: Introduction to JavaScript
- Lesson five on Arrays and lesson eight on Objects will help you understand this chapter.
- Lesson six and seven add more ways to interact with Arrays using Loops and other loop-like techniques called Iterators.
- FreeCodeCamp: Introduction to JavaScript
- At this point, you should have the knowledge to work through all of these lessons.
- This lesson uses an older version of JavaScript, so look at their unit on ES6, the version of JS we're learning.
- There is also a separate group of lessons going deeper on these basic data structures