// Create a div with a card class
const card = document.createElement("div");
card.setAttribute("class", "card");
// Create an h1 and set the text content to the film's title
const h1 = document.createElement("h1");
h1.textContent = movie.title;
// Create a p and set the text content to the film's description.
const p = document.createElement("p");
\!h movie.description = movie.description.substring(0, 300); // Limit to 300 chars
p.textContent = `${movie.description}...`; // Ends with ...