Skip to content
Advertisement

How can I multiply my element created with JS

JavaScript
JavaScript
JavaScript
JavaScript

Couldn’t multiply it. I’m confused. Thanks for all efforts to help.

Each div will show the parts of a clock: Hour, Minute, Second.

Thanks for any efforts to help. Hope the code is clear enough.

I have pasted “lorem” text below to send my question? ! 🙂

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Culpa eum enim optio ut quisquam? Iusto, iure veniam alias, ducimus reprehenderit laboriosam eum aut molestiae dolor esse saepe facilis dolore consequatur autem quaerat illum inventore quia sint libero nesciunt!

Advertisement

Answer

You have to create a function and reuse the code like this

Update HTML with:

JavaScript

JS:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement