V School | Better Humans, Better Outcomes

Conditionals

Understanding Booleans To understand conditionals (if, else if, else blocks) in JavaScript, you'll need a solid understanding of booleans first. true and false Simply put, a Boolean only has two values it can be - true or false. These are reserved keywords in JavaScript and must be spelled/capitalized (not

Caeser Cipher

In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed

Battleship

You are going to create a simplified version of the game Battleship. You will create a grid system and generate single-point ships (one hit and it's sunk) at random coordinates. Then in the terminal the user will attempt to attack the computer by entering a coordinate. If it is a

Exercise - Functions

Functions are important building blocks in any language. They help ensure that your code follows the DRY principle and that you follow a design principle called Separation of Concerns. Your functions should “do one thing and do it well” (McIlroy). These exercises will help strengthen your function know-how. * Write a

Exercise - Loops

Loops help you reduce your lines of code when performing a task multiple times. Here you will learn how to use some of the different looping structures. Beware of infinite loops! * Write a function that accepts a string as input. Write a loop and add each letter of the string

V School | Better Humans, Better Outcomes © 2026