Welcome to the Treehouse Community
Looking to learn something new?
Logging href to the console... why?
I understand how in making the lightbox we are stopping the action of going to the link when we click the image. However, I do not understand why we are also logging the url of the link to the console. What's the purpose of this?
The purpose is just for testing purposes to make sure that it gets the correct href with that method.
I had the same question. It just didn't seem to make sense for the code. Thanks for clearing that up.