JSFiddle - React, Tailwind, and code Playground

by steven keezer

JavaScript

var zoo = {

  name: "Cuesta College Zoo",

  numOfAnimals: 278,

  status: "Open"
};

alert(zoo.name + " is " + zoo.status + "! We have " + zoo.numOfAnimals + " animals at our zoo!");

zoo["mostDangerous"] = "The Zookeeper";

alert(zoo.name + " is " + zoo.status + "! We have " + zoo.numOfAnimals + " animals at our zoo! Our most dangerous animal is the " + zoo.mostDangerous + "!");

delete zoo.numOfAnimals;

alert(zoo.name + " is " + zoo.status + "! Our most dangerous animal is the " + zoo.mostDangerous + "!");

zoo["ReptileTypes"] = ["Snake", "Lizard", "Crocodile", "Alligator", "Turtle", "Dinosaur"];

alert(zoo.name + " is " + zoo.status + "! Our most dangerous animal is the " + zoo.mostDangerous + "! We also have a cool selection of Reptiles, " + zoo.ReptileTypes.join(", ") + ", and many more!");

zoo.name = "Steven's Zoo of Shame";

alert(zoo.name + " is " + zoo.status + "! Our most dangerous animal is the " + zoo.mostDangerous + "! We also have a cool selection of Reptiles, " + zoo.ReptileTypes.join(", ") + ", and many more!");