DEV Community

Discussion on: How do I use .forEach on DOM Elements?

Collapse
 
moopet profile image
Ben Sinclair

This isn't related to the purpose of your post, but why are you creating a new variable (localTime), and is there a reason you're using a span instead of the time element?