V School | Better Humans, Better Outcomes

Hello, Class!

var sayHello = function(){ console.log("hello class") } Tasks Level One * call the function * change this function expression to a function declaration Tasks Level Two * Give the function a name parameter * Pass the function call a string (preferably a name) as an argument. * Return a cool string, like: "Hello Fred!"! Tasks

Enemy Generator

Build a constructor that can generate enemy "objects." Then write a function to create 100 enemy objects, store them in an array, and return the array. Each enemy object should have the following properties: * type * hitPoints * defense The type should be randomly selected among the following types: * Ancient Dragon * Prowler

Look It Up!

Using the readline-sync package, write a program that allows a user to create their own dictionary. When the program starts, a menu should display asking the user which of the following they would like to do: 1. Insert a word and its definition 2. Look up an existing word's definition

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

Javascript Callbacks

Callbacks are found all over the place in JavaScript. A callback is simply a function that delays its execution until the time is just right for it to execute. Synchronous vs. Asynchronous JavaScript You'll often hear about a concept called synchronous and asynchronous programming/programs/code. When a piece of

V School | Better Humans, Better Outcomes © 2026