Revolut interview question

How would you create your own virtual DOM using javascript