SLK Group interview question

Write a JavaScript code for adding new elements dynamically?