duplicate images in webpage js
Here is what the above code is Doing:
1. We create a function called cloneItem() that clones the item element and appends it to the list element.
2. We then call the cloneItem() function 5 times.
The result is that we have 5 copies of the item element appended to the list element.