This code demonstrates the user of JavaScript
to add and clear list items dynamically