Pregunta de entrevista de Revolut

How would you create your own virtual DOM using javascript