V School | Better Humans, Better Outcomes

Data Types

Representing Data Data types (also known as data structures) allow programmers to represent information from the real world in code. They can be divided into 2 groups: primitive data types and complex data types. The specific types we'll focus on are: Primitive Data Types * Strings * Numbers * Booleans Complex Data Types

Functions

What is a function? “A function is a JavaScript procedure—a set of statements that performs a task or calculates a value.” - MDN Web Docs Analogy Think about some appliances in your kitchen: a dishwasher, refrigerator, toaster, oven, etc. Each of these appliances do a very specific thing – dishwashers

Loops

What is a loop? Any time you find yourself needing to repeat the same code over and over, you'll oftentimes need a loop. Imagine you're tasked with console.logging the numbers 1 through 1,000 to the console. Obviously this would be very obnoxious and repetitive to write manually. But

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

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

V School | Better Humans, Better Outcomes © 2026