This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Data Types: | |
// Primitives: | |
// String | |
// Boolean | |
// Number | |
// BigInt | |
// undefined | |
// Symbol | |
// Null |