Revolut Interview Question

How would you create your own virtual DOM using javascript