I'm pretty sure I'm going to kick myself hard (very hard) when I see an answer to this but when I do `console.log(markerDiv)` the console just outputs the img element. What am I doing wrong?

Edited as answers suggest:

```
var dynamic = document.createElement("img");
dynamic.src = "images/dynamic.png";
dynamic.setAttribute("id", "img-" + markerData[data].registration);
var markerDiv = document.createElement("div");
markerDiv.appendChild(dynamic);

console.log(markerDiv);

```

Result of console.log:

![enter image description here](https://i.stack.imgur.com/RzxfF.png)

Thanks