Hello. I’m having issues w/ an exercise regarding getElementById. I’m given an HTML doc w/ an image and header. Here is the HTML code.
I ♥ unicorns`
We are also given an area of JS file to type in the getElementById. After I tried, it said I was missing. Here is what I have so far.
let unicorn = document.getElementById(unicorn); let mianheading = document.getElementById(mainheading);
Select the image element by its ID and save it to a variable called ‘image’. And
Select the H1 by its ID and save it to a variable called ‘heading’.
I think I’m only mis labeling the name. Or tying the wrong name. I’m not sure. Would love the help. Thanks