JavaScript JavaScript Basics Hello, JavaScript! What to Expect

The GIF wouldn't appear on the screen and it said error. why is that happening?

when i copy the line of code into a website the gif wouldnt show up and there was an error in the console.

Full Stack JavaScript Techdegree Student 3,679 Points

I found it didn't work for me on some sites because of certain permissions of the site. If you look back at the code, it told me in red what wasn't being loaded and why. It said the script violated some law of privacy. So I tried it on a different website, and the gif and other images loaded.