I assume that I am working locally. So the image path is like this: "freecode/photo.jpg"
What happens?
When uploading the code to codePen you are no longer local, so the path freecode/photo.jpg does not exist. What you have to do is change the path to one that will direct you to the image on the internet. For example: