Clear a Container
Clear a Container
Sometimes the children of a container are stale, but the container itself still belongs on the page. Removing the parent would make later rendering harder.
The operation should leave an empty list element in place and update the visible status to explain what happened.
Your task: Clear all rows from the upload queue and set the queue status to Queue cleared. Keep the queue element itself in the DOM.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Clear a Container
Sometimes the children of a container are stale, but the container itself still belongs on the page. Removing the parent would make later rendering harder.
The operation should leave an empty list element in place and update the visible status to explain what happened.
Your task: Clear all rows from the upload queue and set the queue status to Queue cleared. Keep the queue element itself in the DOM.