My Edits on the Tutorial

function printInfo(msg) {
    console.log(typeof msg + ";", msg);
}

printInfo(5);
printInfo("apples");
printInfo(["Bob", "Joe", "Kaiden"]);
printInfo(5*3)
number; 5
string; apples
object; [ 'Bob', 'Joe', 'Kaiden' ]
number; 15
function Drink(name, color, calories) {
    this.name = name;
    this.color = color;
    this.calories = calories;
    this.type = "";
}

Drink.prototype.setType = function(type) {
    this.type = type;
}

Drink.prototype.toJSON = function() {
    const data = {name: this.name, color: this.color, calories: this.calories, type: this.type};
    const jsonString = JSON.stringify(data);
    return jsonString;
}

var water = new Drink("Water", "Clear", 0);
water.setType("Water");

printInfo(water);
printInfo(water.toJSON());
object; Drink { name: 'Water', color: 'Clear', calories: 0, type: 'Water' }
string; {"name":"Water","color":"Clear","calories":0,"type":"Water"}
var soda = [
    new Drink("Fanta", "Orange", 160),
    new Drink("Mtn Dew", "Green", 170),
    new Drink("Root Beer", "Brown", 180),
    new Drink("Coca-Cola", "Brown", 140),
    new Drink("Pepsi", "Brown", 150),
    new Drink("Sprite", "Clear", 140)
]

var juice = [
    new Drink("Apple Juice", "Gold-Yellow", 180),
    new Drink("Orange Juice", "Orange-Yellow", 110),
    new Drink("Cranberry Juice", "Red", 100),
]

function Drinks(water, soda, juice) {
    water.setType("Water");
    this.water = water;
    this.drinks = [water];
    this.soda = soda;
    this.juice = juice;
    this.soda.forEach(soda => {soda.setType("Soda"); this.drinks.push(soda);});
    this.juice.forEach(juice => {juice.setType("Juice"); this.drinks.push(juice);});
    this.jsonDrinks = [];
    this.drinks.forEach(drink => this.jsonDrinks.push(drink.toJSON()));
}

pantry = new Drinks(water, soda, juice);

printInfo(pantry.drinks);
printInfo(pantry.drinks[7].name);
printInfo(pantry.jsonDrinks[7]);
printInfo(JSON.parse(pantry.jsonDrinks[7]));
object; [ Drink { name: 'Water', color: 'Clear', calories: 0, type: 'Water' },
  Drink { name: 'Fanta', color: 'Orange', calories: 160, type: 'Soda' },
  Drink { name: 'Mtn Dew', color: 'Green', calories: 170, type: 'Soda' },
  Drink { name: 'Root Beer', color: 'Brown', calories: 180, type: 'Soda' },
  Drink { name: 'Coca-Cola', color: 'Brown', calories: 140, type: 'Soda' },
  Drink { name: 'Pepsi', color: 'Brown', calories: 150, type: 'Soda' },
  Drink { name: 'Sprite', color: 'Clear', calories: 140, type: 'Soda' },
  Drink {
    name: 'Apple Juice',
    color: 'Gold-Yellow',
    calories: 180,
    type: 'Juice' },
  Drink {
    name: 'Orange Juice',
    color: 'Orange-Yellow',
    calories: 110,
    type: 'Juice' },
  Drink {
    name: 'Cranberry Juice',
    color: 'Red',
    calories: 100,
    type: 'Juice' } ]
string; Apple Juice
string; {"name":"Apple Juice","color":"Gold-Yellow","calories":180,"type":"Juice"}
object; { name: 'Apple Juice',
  color: 'Gold-Yellow',
  calories: 180,
  type: 'Juice' }

Pythagorean Triples

var a = 1;
var b = 1;
var c = 1;
var range = 20;

console.log("Here are some Pythagorean Triples:")

for(let i = 0; i < range; i++) {
    for(let i = a; i < 500; i++) {
        b = i;
        c = Math.sqrt(Math.pow(a,2) + Math.pow(b,2));
        if (Math.floor(c)==c){
            console.log(a,b,c);
        }
    }
    a++;
}
Here are some Pythagorean Triples:
3 4 5
5 12 13
6 8 10
7 24 25
8 15 17
9 12 15
9 40 41
10 24 26
11 60 61
12 16 20
12 35 37
13 84 85
14 48 50
15 20 25
15 36 39
15 112 113
16 30 34
16 63 65
17 144 145
18 24 30
18 80 82
19 180 181
20 21 29
20 48 52
20 99 101
20