
Jack B. answered 04/28/21
I teach HTML, CSS, JavaScript, and anything related to Computer
You have created the function and everything correctly. But you need to call the function.
function. At the very end, of it, I called it. The following code is correct. Good Luck,
Best, Jack
generateCat(){
var image = document.createElement("img");// Create image element
var div = document.getElementById("flex-cat-gen"); // Get access to div container
image.src = "image\320464.jpg";
div.appendChild(image); // To the div appendchild (image)
}
generateCat();