V School | Better Humans, Better Outcomes

Template Literals

These are designed for making our strings easier to read and write. They utilize the "back tick." This symbol -> `. It's just left of the "1" on your keyboard. We put our entire string inside two back ticks, and we use a dollar sign and curly brackets to insert JavaScript

Default Parameters

Often times, we want to write a function with a default argument. For example, you have a function that returns the square inches of a piece of wood. Most of our boards are an inch think, but occasionally they are more. Thickness in this function would default to 1. To

Rest and Spread Operator

Rest Operator Often times we want all our arguments to be an array of arguments. We don't know how many arguments will be passed into our function, but we want them to be an array in our function. We do that using the rest operator. ...whatWeWillNameOurArray function addNumbers(...numbers) { // numbers

Let and Const

What is Const and Let? We've historically defined variables using var var name = "Bob Evans"; In ES6, we never need to use var again. It is going to be best practice to only use let and const. const is used to declare variables that will never be re-assigned. let is

Collaborating with Git & Github

# Git Collaboration git branch git checkout git merge # Start the Repo, clone master 1. Create git repository on github 2. Connect/clon locally 3. Set up the code base - git add -A - git commit -m "initial commit" ~~ 4. Clone the repository - don't forget to npm install and

V School | Better Humans, Better Outcomes © 2026