V School | Better Humans, Better Outcomes

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

Anti Caps

Write a function called antiCaps, which accepts a string and manipulates it as follows. * Uppercase characters will become lowercase. * Lowercase characters will become uppercase. antiCaps('Hello') // hELLO antiCaps('racEcar') // RACeCAR antiCaps('bAnAnA') // BaNaNa Hint Here is a helper function that will return true if the letter is uppercase, and false

Warmup - Array Filter

The Javascript Array Filter function is used to remove unwanted elements from an array. The filter function accepts a callback function. The callback function is invoked once with each element in the array. If the callback function returns a truthy value the element stays. If the callback function returns a

No Duplicates

Given a string, remove any duplicate letters. Example: var input = "bookkeeper larry"; // Output: "bokepr lay" Extra Credit: * Create a function that randomly removes a letter. * Create a function that scrambles the original string. * Create a function using regular expressions that remove all vowels.

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

V School | Better Humans, Better Outcomes © 2026