V School | Better Humans, Better Outcomes

Warmup - Unique Name

Part One Define a function in JavaScript named addUniqueName that has two parameters - one called name of type String and the other called names of type Array. The function will take the name and add it to the names array only if that name is not already in the

Warmup - Print Date

Write a JavaScript program to display the current day and time. The format that prints to the console should look similar to this: Today is: Friday Current time is: 4:52:40 PM All that matters is the end result. No matter what day you run this program, it should

Objects

Objects are collections of properties and values. { name: 'Tommy Boy', age: 26, weight: 306, friends: ['Richard', 'Michelle'] } var person = { fullName: 'Tommy Boy', age: 26, weight: 306, friends: ['Richard', 'Michelle'] }; // Two ways to access the data at a object's property: console.log(person.age); console.log(person['age']); Objects vs Arrays

Arrays

Arrays are a data structure we can use to collect together multiple other pieces of data. Essentially, it's like a box that holds things inside in a specified order. Creating an array Arrays are created simply by surrounding the pieces of data you want in the array with square brackets

Mom's Shopping List

Your mom is frustrated by her propensity to lose slips of paper with writing on them, specifically her shopping lists. She knows that you're a really smart web developer and assumes that you can easily make her a website to keep track of her shopping list. Project Requirements Overview Using

V School | Better Humans, Better Outcomes © 2026