Pregunta de entrevista de iKrux

Write a JavaScript code for adding new elements dynamically.