Whatfix interview question

Dom manipulations in JavaScript?