JS04 - Complex Data Types
Assignment Overview
This assignment gives you structured practice with two of the most important JavaScript data structures: arrays and objects. You will work through a series of exercises that ask you to create data, access values, update information, loop through collections, use array methods, and build simple object methods.
The goal is to strengthen your understanding of how JavaScript stores and organizes data. You will also practice applying these ideas in music-app style examples, such as playlists, song libraries, queues, and track objects.
Files You Need
Use the two exercise handouts provided for this assignment:
Arrays Exercises Handout
Objects Exercises Handout
What You Will Practice
In this assignment, you will practice how to:
create and access arrays
change arrays with mutation methods
loop through arrays
transform and analyze array data
create objects with properties
update objects and add methods
work with arrays of objects
build reusable object patterns with constructor functions
Assignment Tasks
You will complete the exercises from both handouts:
Arrays Exercises
Objects Exercises
Together, these exercises cover Lessons 1–8.
What To Submit
Submit one JavaScript file that contains all of your work for this assignment.
Your file should include:
all required code for the exercises
clear labels or comments showing where each exercise begins
all written reflection responses typed as comments in your JavaScript file
Use clear spacing and organization so your work is easy to follow.
Important Instructions
Write your code yourself and test it as you go. Use console.log() when the exercise asks you to display results or check your work.
When an exercise includes reflection questions, answer them directly in comments. For example:
// Reflection:// An array stores multiple values in order.// An index is the numeric position of a value in an array.If an exercise asks you to create your own data, you may choose your own song titles, artists, albums, or similar examples unless specific values are provided.
Evaluation
This assignment is worth 10 points and will be graded mainly on completion, correctness, and clarity.
Grading Criteria
10 points: You completed the full assignment, followed directions, and showed clear understanding of the concepts. Most or all code works correctly, and your reflections are included.
8–9 points: You completed most of the assignment and showed solid effort, but there are a few errors, missing pieces, or unclear sections.
6–7 points: You completed part of the assignment, but several exercises are incomplete, missing, or show significant confusion about the concepts.
0–5 points: A large portion of the assignment is missing, incomplete, or not submitted in a usable form.
Tips for Success
Start early and work in small sections. Test each exercise before moving to the next one. If something is not working, check your spelling, brackets, quotation marks, commas, and property names carefully. Many JavaScript errors come from small details.
Keep in mind that arrays are useful for ordered lists, while objects are useful for grouped information with named properties. As you move through the assignment, pay attention to how those two structures work separately and together.
Locked Message
