Write a JavaScript code for adding new elements dynamically.

Technical