V School | Better Humans, Better Outcomes

Warmup - StringSplosion

Create a function that, given any non-empty string, returns a string where each character is concocted with each of the preceding characters. Example: stringSplosion("ab") //Output: "aab" stringSplosion("abc") //Output: "aababc" stringSplosion("Code") //Output: "CCoCodCode" Hint: You'll first want to identify the pattern before writing the code.

Warmup - Snoozed

We want to program our alarm clock according to our schedule. In this exercise, we will create a function that has a parameter for weekdays and another for holidays. Both arguments, to be passed in, will be booleans. This function should know when we should sleep in, returning true. Example:

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

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

V School | Better Humans, Better Outcomes © 2026