SLK Group Interview Question

Write a JavaScript code for adding new elements dynamically?