Skip to content

Instantly share code, notes, and snippets.

View morgvanny's full-sized avatar

Morgan VanYperen morgvanny

View GitHub Profile
def main_menu():
while True:
print("Main Menu:")
print("1. Option 1")
print("2. Option 2")
print("3. Exit")
choice = input("Enter your choice: ")
if choice == "1":
@morgvanny
morgvanny / index.js
Created December 22, 2021 07:48
hog solution
const hogContainer = document.querySelector("#hog-container");
function appendHog(hog) {
const hogCard = document.createElement("div");
const nameH2 = document.createElement("h2");
nameH2.innerText = hog.name;
hogCard.append(nameH2);
const img = document.createElement("img");
img.src = hog.image;
hogCard.append(img);
// Data Types:
// Primitives:
// String
// Boolean
// Number
// BigInt
// undefined
// Symbol
// Null