V School | Better Humans, Better Outcomes

RPG Strategy

The colossal RPG is our first really big project. It's great practice for how to approach big things. For those of you who don't know how to start, here is how I would do it. The first few steps will help us get a big picture of what's going on.

Node Calculator Using Callbacks

Using the following code: // readline-sync stuff here function add(a, b){ return a + b; } function subtract(a, b){ return a - b; } function multiply(a, b){ return a * b; } function divide(a, b){ return a / b; } function calculate(a, b, operationFunction){ //your code here. } Make a calculator that will take

Array Methods Exercise

Create a new JavaScript file and put these two arrays at the beginning. You will write a single function that performs many operations on them. var fruit = ["banana", "apple", "orange", "watermelon"]; var vegetables = ["carrot", "tomato", "pepper", "lettuce"]; After every command, use console.log() to inspect your arrays. A good way

Model-view-controller

Design patterns are solutions to common programming situations. An extremely popular pattern for web development is Model-view-controller, or MVC, and it's derivatives. This pattern separates our concerns into 3 areas: * Model - which handles the storage of data. * View - displays to the user data and updates according to changes

Debugging Exercise - JSON

You will use http://jsonlint.com/ to help you make the following object valid JSON { { name, george; age, 24 friend, true }, {name: fredrick, age: 84 friend, true } } Often it will indicate that the problem in on a certain line, but the real problem is actually on the following line. Notice

V School | Better Humans, Better Outcomes © 2026